logo
logo

Interface IPolicy

Describes a policy.

Namespace: Stylelabs.M.Sdk.Contracts.Policies
Assembly: Stylelabs.M.Sdk.dll
Syntax
public interface IPolicy : IResource

Properties

MemberGroupSecurity

Gets a list of member group policies (never null).

Declaration
IList<IMemberPolicy> MemberGroupSecurity { get; }
Property Value
Type Description
IList<IMemberPolicy>

MemberSecurity

Gets a list of member policies (never null).

Declaration
IList<IMemberPolicy> MemberSecurity { get; }
Property Value
Type Description
IList<IMemberPolicy>

Rules

Gets a list of rules (never null).

Declaration
IList<IRule> Rules { get; }
Property Value
Type Description
IList<IRule>

Methods

GetRelatedId()

Gets the id of entity this policy applies to. This depends on the implementation. E.g. for IUserPolicy it will return UserId.

Declaration
long? GetRelatedId()
Returns
Type Description
System.Nullable<System.Int64>

Can we improve this article ? Provide feedback