Gets the policy that is specified for the document, when the document is stored on a server that is running Microsoft Office SharePoint Server.
Assembly: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
The following code example retrieves the information management policy that is associated with the current document and displays the policy name, description, and statement. To run this example, you must publish the document to a Microsoft Office SharePoint Server site and define an information management policy in the site. To use this example, run it from the ThisDocument class in a document-level project.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.