Share via


WindowsIdentity.Owner Properti

Definisi

Mendapatkan pengidentifikasi keamanan (SID) untuk pemilik token.

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

Nilai Properti

Objek untuk pemilik token.

Atribut

Contoh

Contoh kode berikut menunjukkan penggunaan Owner properti untuk menampilkan pengidentifikasi keamanan untuk pemilik token. Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk WindowsIdentity kelas

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

Keterangan

SID secara unik mengidentifikasi pengguna atau grup pada semua implementasi Windows NT. SID yang dikembalikan mengidentifikasi SID pemilik default yang akan diterapkan ke objek yang baru dibuat.

Berlaku untuk