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.

OidCollection::SyncRoot Property

 

Gets an object that can be used to synchronize access to the OidCollection object.

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

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

Property Value

Type: System::Object^

An object that can be used to synchronize access to the OidCollection object.

OidCollection is not thread safe. Derived classes can provide their own synchronized version of the OidCollection class using this property. The synchronizing code must perform operations on the SyncRoot property of the OidCollection object, not directly on the object itself. This ensures proper operation of collections that are derived from other objects. Specifically, it maintains proper synchronization with other threads that might simultaneously be modifying the OidCollection object.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft