Modifica

Condividi tramite


UserPermission.UserId Property

Definition

Gets the e-mail address of the user whose permissions on the current form are determined by the specified UserPermission object.

public:
 property System::String ^ default { System::String ^ get(); };
public string this { get; }
member this.UserId : string
Default Public ReadOnly Property UserId As String

Property Value

The user's e-mail address.

Examples

In the following example, the second UserPermission object retrieved from the Permission collection for the current form, and then the UserId property is used to display the user's e-mail address.

_XDocument3 thisDoc = (_XDocument3)thisXDocument;
UserPermission thisUser = 
   thisDoc.Permission[1];
thisXDocument.UI.Alert(thisUser.UserId);
Dim thisDoc As _XDocument3 = DirectCast(thisXDocument, _XDocument3)
UserPermission thisUser = 
   Permission.UserPermissions(1)
thisXDocument.UI.Alert(thisUser.UserId)

Remarks

The UserPermission object associates a set of permissions on the current form with a single user and an optional expiration date. The UserId property returns the e-mail address of the user whose permissions are determined by the UserPermission object.

Applies to