Class Policy
Describes a policy.
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsPolicies
Assembly: Stylelabs.M.Sdk.dll
Syntax
public abstract class Policy : IPolicy, IResourceProperties
CreatedBy
Gets the id of the user who created this resource. null if it has not been created.
Declaration
public long? CreatedBy { get; set; }Property Value
| Type | Description |
|---|---|
| long |
CreatedOn
Gets the date on which this resource was created. null if it has not been created.
Declaration
public DateTime? CreatedOn { get; set; }Property Value
| Type | Description |
|---|---|
| DateTime |
MemberGroupSecurity
Gets a list of member group policies (never null).
Declaration
public IList<IMemberPolicy> MemberGroupSecurity { get; set; }Property Value
| Type | Description |
|---|---|
| IList<>IMemberPolicy |
MemberSecurity
Gets a list of member policies (never null).
Declaration
public IList<IMemberPolicy> MemberSecurity { get; set; }Property Value
| Type | Description |
|---|---|
| IList<>IMemberPolicy |
ModifiedBy
Gets the id of the user who modified this resource. null if it has not been created.
Declaration
public long? ModifiedBy { get; set; }Property Value
| Type | Description |
|---|---|
| long |
ModifiedOn
Gets the date on which this resource was modified. null if it has not been created.
Declaration
public DateTime? ModifiedOn { get; set; }Property Value
| Type | Description |
|---|---|
| DateTime |
Rules
Gets a list of rules (never null).
Declaration
public IList<IRule> Rules { get; set; }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
public abstract long? GetRelatedId()Returns
| Type | Description |
|---|---|
| long |
The id. |