_XDocument4.Role - Propriété

Obtient ou définit le rôle actuel de l'utilisateur.

Espace de noms :  Microsoft.Office.Interop.InfoPath
Assembly :  Microsoft.Office.Interop.InfoPath (dans Microsoft.Office.Interop.InfoPath.dll)

Syntaxe

'Déclaration
Property Role As String
    Get
    Set
'Utilisation
Dim instance As _XDocument4
Dim value As String

value = instance.Role

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

Valeur de propriété

Type : System.String

Implémentations

_XDocument3.Role

Exemples

Dans l'exemple suivant, la propriété Role est utilisée pour déterminer le rôle de l'utilisateur actuel.

string currentRole = thisXDocument.Role;

Voir aussi

Référence

_XDocument4 interface

_XDocument4 - Membres

Role - Surcharge

Microsoft.Office.Interop.InfoPath - Espace de noms