ViewController<T>.GetById Method |
Retrieves a view.
Namespace:
Dundas.BI.WebApi.Controllers
Assembly:
Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (25.2.0.1000)
Syntax[HttpGetAttribute("{id}")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(409)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(440)]
public virtual ActionResult<ViewData> GetById(
Guid id,
bool localize = false,
Guid? sessionId = null
)
<HttpGetAttribute("{id}")>
<ProducesResponseTypeAttribute(403)>
<ProducesResponseTypeAttribute(409)>
<ProducesResponseTypeAttribute(410)>
<ProducesResponseTypeAttribute(440)>
Public Overridable Function GetById (
id As Guid,
Optional localize As Boolean = false,
Optional sessionId As Guid? = Nothing
) As ActionResult(Of ViewData)
public:
[HttpGetAttribute(L"{id}")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(409)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(440)]
virtual ActionResult<ViewData^>^ GetById(
Guid id,
bool localize = false,
Nullable<Guid> sessionId = nullptr
)
[<HttpGetAttribute("{id}")>]
[<ProducesResponseTypeAttribute(403)>]
[<ProducesResponseTypeAttribute(409)>]
[<ProducesResponseTypeAttribute(410)>]
[<ProducesResponseTypeAttribute(440)>]
abstract GetById :
id : Guid *
?localize : bool *
?sessionId : Nullable<Guid>
(* Defaults:
let _localize = defaultArg localize false
let _sessionId = defaultArg sessionId null
*)
-> ActionResult<ViewData>
[<HttpGetAttribute("{id}")>]
[<ProducesResponseTypeAttribute(403)>]
[<ProducesResponseTypeAttribute(409)>]
[<ProducesResponseTypeAttribute(410)>]
[<ProducesResponseTypeAttribute(440)>]
override GetById :
id : Guid *
?localize : bool *
?sessionId : Nullable<Guid>
(* Defaults:
let _localize = defaultArg localize false
let _sessionId = defaultArg sessionId null
*)
-> ActionResult<ViewData>
Parameters
- id
- Type: System.Guid
The ID of the view which data is requested. - localize (Optional)
- Type: System.Boolean
Indicates whether the view should be localized in the result. A localized version cannot be saved again. - sessionId (Optional)
- Type: System.Nullable<Guid>
Current session ID.
Return Value
Type:
ActionResult<ViewData>The operation completed successfully. The payload contains a
ViewData object.
See Also