_XDocument3.Permission プロパティ
フォームに関連付けられた PermissionObject オブジェクトへの参照を取得します。
このプロパティは、CLS に準拠していません。
名前空間: Microsoft.Office.Interop.InfoPath.SemiTrust
アセンブリ: Microsoft.Office.Interop.InfoPath.SemiTrust (microsoft.office.interop.infopath.semitrust.dll 内)
構文
'宣言
<DispIdAttribute(50)> _
ReadOnly Property Permission As PermissionObject
'使用
Dim instance As _XDocument3
Dim value As PermissionObject
value = instance.Permission
[DispIdAttribute(50)]
PermissionObject Permission { get; }
プロパティ値
フォームに対する Information Rights Management (IRM) のアクセス許可の設定を表す PermissionObject オブジェクト。
コメント
PermissionObject オブジェクトへの参照が返された後、その参照を使用して、作業中のフォームに対するアクセス許可を制限できます。また、フォーム内のデータを編集、コピー、または印刷できるかどうかなど、特定のアクセス許可の設定を取得または設定することもできます。
Permission プロパティは、Microsoft Office InfoPath 2007 の新しい機能なので、このメソッドにアクセスするには、宣言して _XDocument3 型にキャストする必要があります。詳細については、「[方法] InfoPath 2003 と互換性のない Microsoft.Office.Interop.InfoPath.SemiTrust のメンバを使用する方法」を参照してください。
このメンバは、現在開いているフォームと同じドメイン内で実行されているフォーム、またはドメインを越えたアクセス許可を付与されているフォームだけがアクセスできます。
例
次の例では、Permission プロパティを使用して現在のフォームの PermissionObject オブジェクトを返し、次に Enabled プロパティを使用して、現在のフォームに対してアクセス許可の設定が有効になっているかどうかを表示します。
_XDocument3 thisDoc = (_XDocument3)thisXDocument;
thisXDocument.UI.Alert(
thisDoc.Permission.Enabled.ToString());
Dim thisDoc As _XDocument3 = _
DirectCast(thisXDocument, _XDocument3)
thisXDocument.UI.Alert(
thisDoc.Permission.Enabled.ToString())
関連項目
参照
_XDocument3 インターフェイス
_XDocument3 のメンバ
Microsoft.Office.Interop.InfoPath.SemiTrust 名前空間