PermissionSet.SyncRoot Proprietà

Definizione

Ottiene l'oggetto radice della raccolta corrente.

public:
 virtual property System::Object ^ SyncRoot { System::Object ^ get(); };
public virtual object SyncRoot { get; }
member this.SyncRoot : obj
Public Overridable ReadOnly Property SyncRoot As Object

Valore della proprietà

Object

Oggetto radice della raccolta corrente.

Implementazioni

Esempio

Nell'esempio di codice seguente viene illustrato l'uso della SyncRoot proprietà per ottenere l'oggetto radice dell'insieme corrente. Questo esempio di codice fa parte di un esempio più grande fornito per la PermissionSet classe.

// Display the value of the SyncRoot property.
Console::WriteLine( "SyncRoot property = {0}", ps1->SyncRoot );
// Display the value of the SyncRoot property.
Console.WriteLine("SyncRoot property = " + ps1.SyncRoot);
' Display the value of the SyncRoot property.
Console.WriteLine("SyncRoot property = " & CType(ps1.SyncRoot, PermissionSet).ToString())

Commenti

Questo metodo è necessario per supportare ICollection.

Si applica a