WindowsIdentity.Owner Właściwość

Definicja

Pobiera identyfikator zabezpieczeń (SID) dla właściciela tokenu.

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

Wartość właściwości

Obiekt właściciela tokenu.

Atrybuty

Przykłady

Poniższy przykład kodu przedstawia użycie Owner właściwości w celu wyświetlenia identyfikatora zabezpieczeń właściciela tokenu. Ten przykład kodu jest częścią większego przykładu podanego WindowsIdentity dla klasy

// 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())

Uwagi

Identyfikator SID jednoznacznie identyfikuje użytkownika lub grupę we wszystkich implementacjach systemu Windows NT. Zwrócony identyfikator SID identyfikuje domyślny identyfikator SID właściciela, który zostanie zastosowany do nowo utworzonych obiektów.

Dotyczy