ContentGrant 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示向用户授予的一个权限,该权限使用户可访问权限管理文档中的信息。
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) |  
		 初始化 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) |