Export (0) Print
Expand All

PermissionSet.SyncRoot Property

Gets the root object of the current collection.

[Visual Basic]
Public Overridable ReadOnly Property SyncRoot As Object  Implements _
   ICollection.SyncRoot
[C#]
public virtual object SyncRoot {get;}
[C++]
public: __property virtual Object* get_SyncRoot();
[JScript]
public function get SyncRoot() : Object;

Property Value

The root object of the current collection.

Implements

ICollection.SyncRoot

Remarks

This method is required to support ICollection.

Example

[Visual Basic] 
' Display the value of the SyncRoot property.
Console.WriteLine("SyncRoot property = " & CType(ps1.SyncRoot, PermissionSet).ToString())

[C#] 
// Display the value of the SyncRoot property.
Console.WriteLine("SyncRoot property = " + ps1.SyncRoot);

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

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

See Also

PermissionSet Class | PermissionSet Members | System.Security Namespace

Show:
© 2014 Microsoft