Επεξεργασία

Κοινή χρήση μέσω


ContentGrant Constructors

Definition

Initializes a new instance of the ContentGrant class.

Overloads

ContentGrant(ContentUser, ContentRight)

Initializes a new instance of the ContentGrant class that grants a specified ContentUser a specified ContentRight.

ContentGrant(ContentUser, ContentRight, DateTime, DateTime)

Initializes a new instance of the ContentGrant class that grants a specified ContentUser a specified ContentRight for a specified DateTime duration.

ContentGrant(ContentUser, ContentRight)

Initializes a new instance of the ContentGrant class that grants a specified ContentUser a specified ContentRight.

public:
 ContentGrant(System::Security::RightsManagement::ContentUser ^ user, System::Security::RightsManagement::ContentRight right);
public ContentGrant (System.Security.RightsManagement.ContentUser user, System.Security.RightsManagement.ContentRight right);
new System.Security.RightsManagement.ContentGrant : System.Security.RightsManagement.ContentUser * System.Security.RightsManagement.ContentRight -> System.Security.RightsManagement.ContentGrant
Public Sub New (user As ContentUser, right As ContentRight)

Parameters

user
ContentUser

The user the access right is granted to.

right
ContentRight

The access right that is granted.

Remarks

This constructor initializes the ContentGrant instance with no date or time limitations.

Use the alternate ContentGrant constructor to create an instance with date and time limitations.

See also

Applies to

ContentGrant(ContentUser, ContentRight, DateTime, DateTime)

Initializes a new instance of the ContentGrant class that grants a specified ContentUser a specified ContentRight for a specified DateTime duration.

public:
 ContentGrant(System::Security::RightsManagement::ContentUser ^ user, System::Security::RightsManagement::ContentRight right, DateTime validFrom, DateTime validUntil);
public ContentGrant (System.Security.RightsManagement.ContentUser user, System.Security.RightsManagement.ContentRight right, DateTime validFrom, DateTime validUntil);
new System.Security.RightsManagement.ContentGrant : System.Security.RightsManagement.ContentUser * System.Security.RightsManagement.ContentRight * DateTime * DateTime -> System.Security.RightsManagement.ContentGrant
Public Sub New (user As ContentUser, right As ContentRight, validFrom As DateTime, validUntil As DateTime)

Parameters

user
ContentUser

The user the access right is granted to.

right
ContentRight

The access right that is granted.

validFrom
DateTime

The starting date and time that the right begins.

validUntil
DateTime

The ending date and time that the right expires.

Remarks

Specify the validFrom parameter with DateTime.MinValue if there is no start date and time limitation.

Specify the validUntil parameter with DateTime.MaxValue if there is no end date and time limitation.

See also

Applies to