语言

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 只能在完全信任应用程序中使用。

构造函数

名称 说明
ContentGrant(ContentUser, ContentRight, DateTime, DateTime)

初始化类的新实例,该实例ContentGrant授予指定持续时间的ContentUser指定ContentRightDateTime实例。

ContentGrant(ContentUser, ContentRight)

初始化授予指定指定ContentGrantContentUser实例的ContentRight类的新实例。

属性

名称 说明
Right

ContentRight获取授予的项。

User

获取授予访问权限 Right的用户。

ValidFrom

获取所授予 Right 的开始日期和时间。

ValidUntil

获取所授予的 Right 结束日期和时间。

方法

名称 说明
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type。

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于