IHttpSessionState.SyncRoot Property

 

Gets an object that can be used to synchronize access to the collection of session-state values.

Namespace:   System.Web.SessionState
Assembly:  System.Web (in System.Web.dll)

object SyncRoot { get; }

Property Value

Type: System.Object

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

The following code example implements the SyncRoot property to return a copy of the current object that implements the IHttpSessionState interface.

public object SyncRoot
{
    get { return this; }
}

.NET Framework
Available since 2.0
Return to top
Show: