WidgetTemplatesControllerGetTemplatesInfo - метод
Retrieves the widget templates info for the specified kind and type of dashboard, if any.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
[HttpGetAttribute("info")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[TypedJsonBodyAttribute]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult> GetTemplatesInfo(
[FromQueryAttribute] DashboardType dashboardType,
[FromQueryAttribute] WidgetTemplatesKind? kind = null,
[FromQueryAttribute] string? token = null,
CancellationToken cancellationToken = default
)
<HttpGetAttribute("info")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<TypedJsonBodyAttribute>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function GetTemplatesInfo (
<FromQueryAttribute> dashboardType As DashboardType,
<FromQueryAttribute> Optional kind As WidgetTemplatesKind? = Nothing,
<FromQueryAttribute> Optional token As String = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult)
public:
[HttpGetAttribute(L"info")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[TypedJsonBodyAttribute]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult^>^ GetTemplatesInfo(
[FromQueryAttribute] DashboardType dashboardType,
[FromQueryAttribute] Nullable<WidgetTemplatesKind> kind = nullptr,
[FromQueryAttribute] String^ token = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("info")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<TypedJsonBodyAttribute>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member GetTemplatesInfo :
[<FromQueryAttribute>] dashboardType : DashboardType *
[<FromQueryAttribute>] ?kind : Nullable<WidgetTemplatesKind> *
[<FromQueryAttribute>] ?token : string *
?cancellationToken : CancellationToken
(* Defaults:
let _kind = defaultArg kind null
let _token = defaultArg token null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult>
- dashboardType DashboardType
Dashboard types.
- kind NullableWidgetTemplatesKind (Optional)
The kind of widget templates.
- token String (Optional)
- Serialized token used for widget access control.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskActionResultObbject with a collection of
WidgetTemplateInfo and an optional updated
DashboardToken.