Permission.PolicyDescription 属性 (Office)Permission.PolicyDescription property (Office)

获取应用于活动文档的权限策略的说明。Gets the description of the permissions policy applied to the active document. 只读。Read-only.


expressionexpression. PolicyDescription

_表达式_代表一个Permission对象的变量。expression A variable that represents a Permission object.


Microsoft Office 信息权限管理支持使用管理权限策略,其中列出用户和组以及其文档的权限。Microsoft Office Information Rights Management supports the use of administrative permission policies which list users and groups and their document permissions. 使用 PolicyDescription属性返回应用于活动文档或默认值,如果不使用策略的策略的说明。The PolicyDescription property returns the description of the policy applied to the active document, or a default value if a policy was not used.


下面的示例将显示有关活动文档的权限策略信息。The following example displays permission policy information about the active document.

 Dim irmPermission As Office.Permission 
 Dim strIRMInfo As String 
 Set irmPermission = ActiveWorkbook.Permission 
 If irmPermission.Enabled Then 
 strIRMInfo = "Permissions are restricted on this document." & vbCrLf 
 If irmPermission.PermissionFromPolicy Then 
 strIRMInfo = strIRMInfo & " Permissions applied from policy:" & vbCrLf & _ 
 " Policy name: " & irmPermission.PolicyName & vbCrLf & _ 
 " Policy description: " & irmPermission.PolicyDescription 
 strIRMInfo = strIRMInfo & " Default permissions applied." & vbCrLf & _ 
 " Default policy name: " & irmPermission.PolicyName & vbCrLf & _ 
 " Default policy description: " & irmPermission.PolicyDescription 
 End If 
 strIRMInfo = "Permission are NOT restricted on this document." 
 End If 
 MsgBox strIRMInfo, vbInformation + vbOKOnly, "IRM Information" 
 Set irmPermission = Nothing 

另请参阅See also

Permission 对象Permission Object

Permission 对象成员Permission Object Members