Share via


Permission.Count Property

Gets the number of UserPermissionObject objects associated with the form.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
ReadOnly Property Count As Integer
    Get
'Usage
Dim instance As Permission
Dim value As Integer

value = instance.Count
int Count { get; }

Property Value

Type: System.Int32
The number of UserPermissionObject objects associated with the form.

Examples

In the following example, the Count property is used to display the count of users associated with the form.

_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())

See Also

Reference

Permission Interface

Permission Members

Microsoft.Office.Interop.InfoPath Namespace