_XDocument3.Role Property
Gets or sets the user's current role.
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntax
'Declaration
Property Role As String
Get
Set
'Usage
Dim instance As _XDocument3
Dim value As String
value = instance.Role
instance.Role = value
string Role { get; set; }
Property Value
Type: System.String
Implements
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.
Examples
In the following example, the Role property is used to determine the current user's role.
string currentRole = thisXDocument.Role;