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

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


表达式使用 PolicyDescriptionexpression.PolicyDescription

_表达式_代表一个**Permission** 对象的变量。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.