WindowsIdentity.Owner Proprietà

Definizione

Ottiene l'ID di sicurezza (SID) del proprietario del 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

Valore della proprietà

Oggetto del proprietario del token.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato l'uso della proprietà per visualizzare l'identificatore di Owner sicurezza per il proprietario del token. Questo esempio di codice fa parte di un esempio più grande fornito per 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())

Commenti

Il SID identifica in modo univoco un utente o un gruppo in tutte le implementazioni di Windows NT. Il SID restituito identifica il SID del proprietario predefinito che verrà applicato agli oggetti appena creati.

Si applica a