Edit

Share via


IHttpSessionState.SyncRoot Property

Definition

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

public:
 property System::Object ^ SyncRoot { System::Object ^ get(); };
public object SyncRoot { get; }
member this.SyncRoot : obj
Public ReadOnly Property SyncRoot As Object

Property Value

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

Examples

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; }
}
Public ReadOnly Property SyncRoot As Object Implements IHttpSessionState.SyncRoot    
    Get
      Return Me
   End Get
End Property

Applies to

See also