1. Stylelabs.M.Sdk.Models.Policies

Class Policy

Describes a policy.

Inheritance

object

Policy

UserGroupPolicy

UserPolicy

Implements

IPolicy

IResource

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsPolicies

Assembly: Stylelabs.M.Sdk.dll

Syntax

public abstract class Policy : IPolicy, IResource

Properties

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

TypeDescription
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

TypeDescription
DateTime

MemberGroupSecurity

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

Declaration

public IList<IMemberPolicy> MemberGroupSecurity { get; set; }

Property Value

TypeDescription
IList<>IMemberPolicy

MemberSecurity

Gets a list of member policies (never null).

Declaration

public IList<IMemberPolicy> MemberSecurity { get; set; }

Property Value

TypeDescription
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

TypeDescription
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

TypeDescription
DateTime

Rules

Gets a list of rules (never null).

Declaration

public IList<IRule> Rules { get; set; }

Property Value

TypeDescription
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

TypeDescription
longThe id.

Implements

IPolicy

IResource

If you have suggestions for improving this article, let us know!