Edit

Share via


_XDocument2.Role Property

Definition

Gets or sets the user's current role.

public:
 property System::String ^ Role { System::String ^ get(); void set(System::String ^ value); };
public string Role { get; set; }
member this.Role : string with get, set
Public Property Role As String

Property Value

Examples

In the following example, the Role property is used to determine the current user's role.

string currentRole = thisXDocument.<span class="label">Role</span>;

Remarks

Important: This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Applies to