Interface IPoliciesClient
Version:
日本語翻訳に関する免責事項
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
Contains functionality to get and update policies.
Namespace: Stylelabs.M.Sdk.Clients
Assembly: Stylelabs.M.Sdk.dll
Syntax
Methods
GetUserGroupPolicyAsync(Int64)
Gets the policy from specified user group.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | userGroupId |
Id of the user group to get the policy from. |
Returns
| Type | Description |
|---|---|
| Task<IUserGroupPolicy> |
The policy or null when it was not found. |
GetUserPolicyAsync(Int64)
Gets the policy from specified user.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | userId |
Id of the user to get the policy from. |
Returns
| Type | Description |
|---|---|
| Task<IUserPolicy> |
The policy or null when it was not found. |
UpdateAsync(IPolicy)
Updates the specified policy.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IPolicy | policy |
The policy to update. |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| ValidationException |
Thrown when the policy could not be saved because a validation error occurred. |