フォームに関連付けられた UserPermissionObject オブジェクトの数を取得します。
名前空間: Microsoft.Office.Interop.InfoPath
アセンブリ: Microsoft.Office.Interop.InfoPath (microsoft.office.interop.infopath.dll 内)
構文
'宣言
<DispIdAttribute(1)> _
ReadOnly Property Count As Integer
'使用
Dim instance As Permission
Dim value As Integer
value = instance.Count
[DispIdAttribute(1)]
int Count { get; }
プロパティ値
フォームに関連付けられた 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 インターフェイス
Permission のメンバ
Microsoft.Office.Interop.InfoPath 名前空間