Share via


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.RightsManagementContentGrant 只能在完全信任應用程式中使用。

建構函式

ContentGrant(ContentUser, ContentRight)

初始化 ContentGrant 類別的新執行個體,此類別授予指定的 ContentUser 一項指定的 ContentRight

ContentGrant(ContentUser, ContentRight, DateTime, DateTime)

初始化 ContentGrant 類別的新執行個體,此類別授予指定的 ContentUser 一項指定的 ContentRight,在一段指定 DateTime 期間內有效。

屬性

Right

取得所授與的 ContentRight

User

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

ValidFrom

取得所授與 Right 生效的開始日期與時間。

ValidUntil

取得所授與 Right 失效的結束日期與時間。

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於