現在のフォームに適用されたポリシーの説明を取得します。
このプロパティは、CLS に準拠していません。
名前空間: Microsoft.Office.Interop.InfoPath.SemiTrust
アセンブリ: Microsoft.Office.Interop.InfoPath.SemiTrust (microsoft.office.interop.infopath.semitrust.dll 内)
構文
'宣言
<DispIdAttribute(9)> _
ReadOnly Property PolicyDescription As String
'使用
Dim instance As Permission
Dim value As String
value = instance.PolicyDescription
[DispIdAttribute(9)]
string PolicyDescription { get; }
プロパティ値
ポリシーが適用されなかった場合に、アクティブなフォームまたは既定値に適用されたポリシーの説明。
コメント
InfoPath では、ユーザーとグループ、およびフォームでのそれらのアクセス許可の一覧を示す、管理アクセス許可のポリシーの使用がサポートされています。
Permission オブジェクトとそのメンバは Microsoft Office InfoPath 2007 の新しい機能なので、このオブジェクトとそのメンバにアクセスするには、thisXDocument 変数によって返されるオブジェクトを _XDocument3 型にキャストする必要があります。詳細については、「[方法] InfoPath 2003 と互換性のない Microsoft.Office.Interop.InfoPath.SemiTrust のメンバを使用する方法」を参照してください。
このメンバは、現在開いているフォームと同じドメイン内で実行されているフォーム、またはドメインを越えたアクセス許可を付与されているフォームだけがアクセスできます。
例
次の例では、PolicyDescription プロパティを使用して、現在のフォームに適用されたポリシーの説明を表示しています。
_XDocument3 thisDoc = (_XDocument3)thisXDocument;
thisXDocument.UI.Alert(thisDoc.Permission.PolicyDescription);
Dim thisDoc As _XDocument3 = DirectCast(thisXDocument, _XDocument3)
thisXDocument.UI.Alert(thisDoc.Permission.PolicyDescription)
関連項目
参照
Permission インターフェイス
Permission のメンバ
Microsoft.Office.Interop.InfoPath.SemiTrust 名前空間