語言

ContentGrant 類別

定義

代表賦予使用者存取權限管理文件資訊的權利。

public ref class ContentGrant
[System.Security.SecurityCritical(System.Security.SecurityCriticalScope.Everything)]
public class ContentGrant
public class ContentGrant
[<System.Security.SecurityCritical(System.Security.SecurityCriticalScope.Everything)>]
type ContentGrant = class
type ContentGrant = class
Public Class ContentGrant
繼承
ContentGrant
屬性

備註

與其他類型一樣 System.Security.RightsManagement , ContentGrant 僅可用於全信任申請。

建構函式

名稱 Description
ContentGrant(ContentUser, ContentRight, DateTime, DateTime)

初始化一個新的類別實例 ContentGrant ,賦予指定 ContentUser a 指定 ContentRight 且持續 DateTime 時間。

ContentGrant(ContentUser, ContentRight)

初始化一個新的類別實例 ContentGrant ,賦予指定 ContentUser 的 ContentRight。

屬性

名稱 Description
Right

獲得 ContentRight 批准。

User

取得被授權存取 Right權的使用者。

ValidFrom

會得到授予開始的日期和時間 Right 。

ValidUntil

會取得授權到期的截止日期和時間 Right 。

方法

名稱 Description
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於