_XDocument4.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 _XDocument4
Dim value As String

value = instance.Role

instance.Role = value
string Role { get; set; }

Property value

Type: System.String

Implements

_XDocument3.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

_XDocument4 interface

_XDocument4 members

Role overload

Microsoft.Office.Interop.InfoPath namespace