GroupsControllerGetIsMember - метод
Get flag whether current user is a member of specified group.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
[HttpGetAttribute("{id:guid}/is-member")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<bool> GetIsMember(
[FromRouteAttribute] Guid id,
[FromQueryAttribute] bool ignoreCache = false,
CancellationToken cancellationToken = default
)
<HttpGetAttribute("{id:guid}/is-member")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function GetIsMember (
<FromRouteAttribute> id As Guid,
<FromQueryAttribute> Optional ignoreCache As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Boolean)
public:
[HttpGetAttribute(L"{id:guid}/is-member")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<bool>^ GetIsMember(
[FromRouteAttribute] Guid id,
[FromQueryAttribute] bool ignoreCache = false,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("{id:guid}/is-member")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member GetIsMember :
[<FromRouteAttribute>] id : Guid *
[<FromQueryAttribute>] ?ignoreCache : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _ignoreCache = defaultArg ignoreCache false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<bool>
- id Guid
- Group's identifier.
- ignoreCache Boolean (Optional)
- Whether to ignore server cache when obtaining the value. Pass true for administrative UI.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskBooleantrue if current user is a member of the group;
false otherwise.