PermissionSet.SyncRoot Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the root object of the current collection.

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

Public Overridable ReadOnly Property SyncRoot As Object

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 = " & CType(ps1.SyncRoot, PermissionSet).ToString())

.NET Framework
Available since 1.1
Return to top
Show: