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