Поделиться через


Permission.Count Свойство

Определение

Возвращает количество объектов, UserPermissionObject связанных с формой.

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

Значение свойства

Количество объектов, UserPermissionObject связанных с формой.

Примеры

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

Комментарии

Так как объект Permission и его члены являются новыми для Microsoft InfoPath, необходимо привести объект, возвращенный переменной thisXDocument , к _XDocument3 типу для доступа к этому объекту и его членам. Дополнительные сведения см. в разделе How to: Use Object Model Members That Are Not Compatible with InfoPath 2003.

Доступ к этому элементу предоставляется только формам, работающим в том же домене, что и текущая открытая форма, а также формам с междоменными правами доступа.

Применяется к