WindowsIdentity.Owner Własność
Definicja
Ważny
Niektóre informacje dotyczą produktów przedpremierowych, które mogą zostać znacznie zmodyfikowane przed premierą. Microsoft nie udziela żadnych gwarancji, ani wyraźnych, ani domniemanych, dotyczących informacji podanych tutaj.
Pobiera identyfikator zabezpieczeń (SID) 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ść nieruchomoś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 udostępnionego 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.