Share via


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

value = instance.Role

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

Property value

Type: System.String

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;

See also

Reference

_XDocument2 interface

_XDocument2 members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace