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

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



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


Microsoft Office 信息权限管理支持使用管理权限策略, 这些策略列出用户和组及其文档权限。Microsoft Office Information Rights Management supports the use of administrative permission policies that 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

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.