Share via


Permission.PermissionFromPolicy Property 

Returns a Boolean value that indicates whether a permission policy has been applied to the active document.

Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)

Usage

Dim permission1 As Permission

Dim returnValue As Boolean
returnValue = permission1.PermissionFromPolicy

Syntax

ReadOnly Property PermissionFromPolicy() As Boolean
bool PermissionFromPolicy {get;}
property Boolean PermissionFromPolicy{
    Boolean get();
}
public boolean get_PermissionFromPolicy();
function get PermissionFromPolicy() : Boolean;

Remarks

Microsoft Office 2003 Information Rights Management supports the use of administrative permission policies which list users and groups and their document permissions. The PermissionFromPolicy property returns a Boolean value that indicates whether a permission policy was applied to the active document the last time permissions were enabled on the document.

The PermissionFromPolicy property always returns False when checked by a non-owner of the document, even when the user has object model permissions.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Permission Interface
Microsoft.Office.Core Namespace

Other Resources

Permission Members