System.Runtime.Remoting.Proxies.RealProxy.SetStubData Method

Sets the stub data for the specified proxy.

Syntax

public static void SetStubData (RealProxy rp, object stubData)

Parameters

rp
The proxy for which to set stub data.
stubData
The new stub data.

Remarks

The stub data is used by custom proxy users to decide what to do with an incoming method call. For example, the stub data might be information about the server's context that you can use to determine whether to execute the call locally, or send it through the remoting infrastructure.

Requirements

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