Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft