Partager via


Permission.ApplyPolicy Method

Applies the specified permission policy to the active document.

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

Syntax

'Declaration
Sub ApplyPolicy ( _
    FileName As String _
)
'Usage
Dim instance As Permission
Dim FileName As String

instance.ApplyPolicy(FileName)
void ApplyPolicy(
    string FileName
)

Parameters

  • FileName
    Type: System.String

    Required String. The path and filename of the permission policy template file.

Remarks

Microsoft Office Information Rights Management supports the use of administrative permission policies which list users and groups and their document permissions. The ApplyPolicy method applies a permission policy to the active document.

See Also

Reference

Permission Interface

Permission Members

Microsoft.Office.Core Namespace