System.Runtime.Remoting.RemotingServices.GetSessionIdForMethodMessage Method

Retrieves a session ID for a message.

Syntax

public static string GetSessionIdForMethodMessage (System.Runtime.Remoting.Messaging.IMethodMessage msg)

Parameters

msg
The System.Runtime.Remoting.Messaging.IMethodMessage for which a session ID is requested.

Returns

A session ID string that uniquely identifies the current session.

Remarks

The same session ID might be returned for objects in the same application, but this method will never return the same session ID for two objects in different remote applications.

For more information about identifying sessions and session IDs, see ASP.Net Session State.

Requirements

Namespace: System.Runtime.Remoting
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0