NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SortedList.SyncRoot

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

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

Property Value

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

Remarks

The root object for a SortedList is used when performing synchronized operations on the SortedList. Instead of synchronizing directly on a SortedList, program code should always synchronize on the root of the SortedList. This ensures proper operation of lists that are derived from other objects; proper synchronization is maintained with other threads that might be simultaneously modifying the SortedList object.

See Also

SortedList Class | SortedList Members | System.Collections Namespace | IsSynchronized | Synchronized