現在のフォームに適用されたポリシーの名前を取得します。
名前空間: Microsoft.Office.Interop.InfoPath
アセンブリ: Microsoft.Office.Interop.InfoPath (microsoft.office.interop.infopath.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 では、ユーザーとグループ、およびフォームでのそれらのアクセス許可の一覧を示す、管理アクセス許可のポリシーの使用がサポートされています。
例
次の例では、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 名前空間