次の方法で共有


Permission.Count プロパティ

定義

フォームに関連付けられているオブジェクトの UserPermissionObject 数を取得します。

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

プロパティ値

フォームに関連付けられているオブジェクトの UserPermissionObject 数。

次の例では、Count プロパティを使用して、フォームと関連付けられたユーザーの数を表示しています。

_XDocument3 thisDoc = (_XDocument3)thisXDocument;
thisXDocument.UI.Alert(thisDoc.Permission.Count.ToString());
Dim thisDoc As _XDocument3 = DirectCast(thisXDocument, _XDocument3)
thisXDocument.UI.Alert(thisDoc.Permission.Count.ToString())

注釈

Permission オブジェクトとそのメンバーは Microsoft InfoPath を初めて使用するため、このオブジェクトとそのメンバーにアクセスするには、thisXDocument 変数によって返されるオブジェクトを_XDocument3型にキャストする必要があります。 詳細については、「[方法] InfoPath 2003 と互換性のないオブジェクト モデルのメンバーを使用する方法」を参照してください。

このメンバは、現在開いているフォームと同じドメインで実行中のフォーム、またはクロスドメインのアクセス許可が与えられたフォームだけがアクセスできます。

適用対象