DataKeyCollection.SyncRoot Property


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

Gets the object used to synchronize access to the DataKeyCollection.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public object SyncRoot { get; }

Property Value

Type: System.Object

A System.Object that can be used to synchronize access to the collection.

The object returned in this implementation is the DataKeyCollection object itself.

For more information on the SyncRoot property, see the ICollection.SyncRoot property of the System.Collections.ICollection interface.

.NET Framework
Available since 1.1
Return to top