Share via


_XDocument3.Role Property

Gets or sets the user's current role.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.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
The user's current role.

Implements

_XDocument2.Role

Examples

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

string currentRole = thisXDocument.Role;

See Also

Reference

_XDocument3 Interface

_XDocument3 Members

Role Overload

Microsoft.Office.Interop.InfoPath Namespace