RemotingServices Class

 
System_CAPS_noteNote

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

Provides several methods for using and publishing remoted objects and proxies. This class cannot be inherited.

Namespace:   System.Runtime.Remoting
Assembly:  mscorlib (in mscorlib.dll)

System.Object
  System.Runtime.Remoting.RemotingServices

<ComVisibleAttribute(True)>
Public NotInheritable Class RemotingServices

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticConnect(Type, String)

Creates a proxy for a well-known object, given the Type and URL.

System_CAPS_pubmethodSystem_CAPS_staticConnect(Type, String, Object)

Creates a proxy for a well-known object, given the Type, URL, and channel-specific data.

System_CAPS_pubmethodSystem_CAPS_staticDisconnect(MarshalByRefObject)

Stops an object from receiving any further messages through the registered remoting channels.

System_CAPS_pubmethodSystem_CAPS_staticExecuteMessage(MarshalByRefObject, IMethodCallMessage)

Connects to the specified remote object, and executes the provided IMethodCallMessage on it.

System_CAPS_pubmethodSystem_CAPS_staticGetEnvoyChainForProxy(MarshalByRefObject)

Returns a chain of envoy sinks that should be used when sending messages to the remote object represented by the specified proxy.

System_CAPS_pubmethodSystem_CAPS_staticGetLifetimeService(MarshalByRefObject)

Returns a lifetime service object that controls the lifetime policy of the specified object.

System_CAPS_pubmethodSystem_CAPS_staticGetMethodBaseFromMethodMessage(IMethodMessage)

Returns the method base from the given IMethodMessage.

System_CAPS_pubmethodSystem_CAPS_staticGetObjectData(Object, SerializationInfo, StreamingContext)

Serializes the specified marshal by reference object into the provided SerializationInfo.

System_CAPS_pubmethodSystem_CAPS_staticGetObjectUri(MarshalByRefObject)

Retrieves the URI for the specified object.

System_CAPS_pubmethodSystem_CAPS_staticGetObjRefForProxy(MarshalByRefObject)

Returns the ObjRef that represents the remote object from the specified proxy.

System_CAPS_pubmethodSystem_CAPS_staticGetRealProxy(Object)

Returns the real proxy backing the specified transparent proxy.

System_CAPS_pubmethodSystem_CAPS_staticGetServerTypeForUri(String)

Returns the Type of the object with the specified URI.

System_CAPS_pubmethodSystem_CAPS_staticGetSessionIdForMethodMessage(IMethodMessage)

Retrieves a session ID for a message.

System_CAPS_pubmethodSystem_CAPS_staticIsMethodOverloaded(IMethodMessage)

Returns a Boolean value that indicates whether the method in the given message is overloaded.

System_CAPS_pubmethodSystem_CAPS_staticIsObjectOutOfAppDomain(Object)

Returns a Boolean value that indicates whether the object specified by the given transparent proxy is contained in a different application domain than the object that called the current method.

System_CAPS_pubmethodSystem_CAPS_staticIsObjectOutOfContext(Object)

Returns a Boolean value that indicates whether the object represented by the given proxy is contained in a different context than the object that called the current method.

System_CAPS_pubmethodSystem_CAPS_staticIsOneWay(MethodBase)

Returns a Boolean value that indicates whether the client that called the method specified in the given message is waiting for the server to finish processing the method before continuing execution.

System_CAPS_pubmethodSystem_CAPS_staticIsTransparentProxy(Object)

Returns a Boolean value that indicates whether the given object is a transparent proxy or a real object.

System_CAPS_pubmethodSystem_CAPS_staticLogRemotingStage(Int32)

Obsolete. This API supports the product infrastructure and is not intended to be used directly from your code. Logs the stage in a remoting exchange to an external debugger.

System_CAPS_pubmethodSystem_CAPS_staticMarshal(MarshalByRefObject)

Takes a MarshalByRefObject, registers it with the remoting infrastructure, and converts it into an instance of the ObjRef class.

System_CAPS_pubmethodSystem_CAPS_staticMarshal(MarshalByRefObject, String)

Converts the given MarshalByRefObject into an instance of the ObjRef class with the specified URI.

System_CAPS_pubmethodSystem_CAPS_staticMarshal(MarshalByRefObject, String, Type)

Takes a MarshalByRefObject and converts it into an instance of the ObjRef class with the specified URI, and the provided Type.

System_CAPS_pubmethodSystem_CAPS_staticSetObjectUriForMarshal(MarshalByRefObject, String)

Sets the URI for the subsequent call to the Marshal method.

System_CAPS_pubmethodSystem_CAPS_staticUnmarshal(ObjRef)

Takes a ObjRef and creates a proxy object out of it.

System_CAPS_pubmethodSystem_CAPS_staticUnmarshal(ObjRef, Boolean)

Takes a ObjRef and creates a proxy object out of it, refining it to the type on the server.

Unless you are a service provider dealing with issues such as activation, lifetime management, or transactions, you do not need to distinguish between proxy references and object references. The remoting infrastructure uses transparent proxies that give the impression that the remote objects reside in the client's space. Proxies achieve this by forwarding calls made on them to the real objects at remote locations.

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: