WorkbookBase.ServerPolicy プロパティ

定義

Microsoft Office SharePoint Server を実行しているサーバーに保存されたブックに指定されているポリシーを表すオブジェクトを取得します。

public:
 property Microsoft::Office::Core::ServerPolicy ^ ServerPolicy { Microsoft::Office::Core::ServerPolicy ^ get(); };
public Microsoft.Office.Core.ServerPolicy ServerPolicy { get; }
member this.ServerPolicy : Microsoft.Office.Core.ServerPolicy
Public ReadOnly Property ServerPolicy As ServerPolicy

プロパティ値

SharePoint Server を実行しているサーバーに格納されているブックに対して指定されたポリシーを表す Microsoft.Office.Core.ServerPolicy オブジェクト。

注釈

次のコード例では、現在のブックに関連付けられている情報管理ポリシーを取得し、ポリシー名、説明、およびステートメントを表示します。 この例を実行するには、ブックを Microsoft Office Sharepoint Server サイトに発行し、サイトで情報管理ポリシーを定義する必要があります。

この例は、ドキュメント レベルのカスタマイズ用です。

private void GetInformationManagementPolicy()
{
    Office.ServerPolicy policy = this.ServerPolicy;
    MessageBox.Show("Information Management Policy: " + policy.Name
        + "\r\nDescription: " + policy.Description
        + "\r\nStatement: " + policy.Statement);
}
Private Sub GetInformationManagementPolicy()
    Dim policy As Office.ServerPolicy = Me.ServerPolicy
    MessageBox.Show("Information Management Policy: " + policy.Name _
        + vbCrLf + "Description: " + policy.Description _
        + vbCrLf + "Statement: " + policy.Statement)
End Sub

適用対象