1. IPoliciesClient

Interface IPoliciesClient

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

Contains functionality to get and update policies.

Namespace: Stylelabs.M.Sdk.Clients
Assembly: Stylelabs.M.Sdk.dll
Syntax
public interface IPoliciesClient

Methods

GetUserGroupPolicyAsync(Int64)

Gets the policy from specified user group.

Declaration
Task<IUserGroupPolicy> GetUserGroupPolicyAsync(long userGroupId)
Parameters
TypeNameDescription
System.Int64userGroupId

Id of the user group to get the policy from.

Returns
TypeDescription
Task<IUserGroupPolicy>

The policy or null when it was not found.

GetUserPolicyAsync(Int64)

Gets the policy from specified user.

Declaration
Task<IUserPolicy> GetUserPolicyAsync(long userId)
Parameters
TypeNameDescription
System.Int64userId

Id of the user to get the policy from.

Returns
TypeDescription
Task<IUserPolicy>

The policy or null when it was not found.

UpdateAsync(IPolicy)

Updates the specified policy.

Declaration
Task UpdateAsync(IPolicy policy)
Parameters
TypeNameDescription
IPolicypolicy

The policy to update.

Returns
TypeDescription
Task
Exceptions
TypeCondition
ValidationException

Thrown when the policy could not be saved because a validation error occurred.

この記事を改善するための提案がある場合は、 お知らせください!