WindowsIdentity.Owner Propriété

Définition

Obtient l'identificateur de sécurité (SID) pour le propriétaire du jeton.

public:
 property System::Security::Principal::SecurityIdentifier ^ Owner { System::Security::Principal::SecurityIdentifier ^ get(); };
public System.Security.Principal.SecurityIdentifier Owner { get; }
public System.Security.Principal.SecurityIdentifier? Owner { get; }
[System.Runtime.InteropServices.ComVisible(false)]
public System.Security.Principal.SecurityIdentifier Owner { get; }
member this.Owner : System.Security.Principal.SecurityIdentifier
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.Owner : System.Security.Principal.SecurityIdentifier
Public ReadOnly Property Owner As SecurityIdentifier

Valeur de propriété

SecurityIdentifier

Objet pour le propriétaire du jeton.

Attributs

Exemples

L’exemple de code suivant illustre l’utilisation de la Owner propriété pour afficher l’identificateur de sécurité du propriétaire du jeton. Cet exemple de code fait partie d’un exemple plus complet fourni pour la WindowsIdentity classe.

// Display the SID for the owner.
Console.Write("The SID for the owner is : ");
SecurityIdentifier si = windowsIdentity.Owner;
Console.WriteLine(si.ToString());
' Display the SID for the owner.
Console.Write("The SID for the owner is : ")
Dim si As SecurityIdentifier
si = windowsIdentity.Owner
Console.WriteLine(si.ToString())

Remarques

Le SID identifie de manière unique un utilisateur ou un groupe sur toutes les implémentations de Windows NT. Le SID retourné identifie le SID de propriétaire par défaut qui sera appliqué aux objets nouvellement créés.

S’applique à