Applies a policy to the form using a policy template file.
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
'Declaration PublicMustOverrideSubApplyPolicy ( _ filenameAsString _ ) 'Usage DiminstanceAsPermissionDimfilenameAsString instance.ApplyPolicy(filename)
- Type: System.String
The path and file name of an Extensible Rights Markup Language (XRML) file that defines users and groups and permissions to apply to the form template.
To view an example of the format of an XRML file that is used as a policy template file, see Sample End-User License in the Rights Management Services SDK.
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.