PermissionSet::SyncRoot Property

 

Gets the root object of the current collection.

Namespace:   System.Security
Assembly:  mscorlib (in mscorlib.dll)

public:
property Object^ SyncRoot {
	virtual Object^ get();
}

Property Value

Type: System::Object^

The root object of the current collection.

This method is required to support ICollection.

The following code example shows the use of SyncRoot property to get the root object of the current collection. This code example is part of a larger example provided for the PermissionSet class.

// Display the value of the SyncRoot property.
Console::WriteLine( "SyncRoot property = {0}", ps1->SyncRoot );

.NET Framework
Available since 1.1
Return to top
Show: