Export (0) Print
Expand All

RemotingServices Class

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

System.Object
  System.Runtime.Remoting.RemotingServices

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

[ComVisibleAttribute(true)]
public static class RemotingServices

The RemotingServices type exposes the following members.

  NameDescription
Public methodStatic memberConnect(Type, String)Creates a proxy for a well-known object, given the Type and URL.
Public methodStatic memberConnect(Type, String, Object)Creates a proxy for a well-known object, given the Type, URL, and channel-specific data.
Public methodStatic memberDisconnectStops an object from receiving any further messages through the registered remoting channels.
Public methodStatic memberExecuteMessageConnects to the specified remote object, and executes the provided IMethodCallMessage on it.
Public methodStatic memberGetEnvoyChainForProxyReturns a chain of envoy sinks that should be used when sending messages to the remote object represented by the specified proxy.
Public methodStatic memberGetLifetimeServiceReturns a lifetime service object that controls the lifetime policy of the specified object.
Public methodStatic memberGetMethodBaseFromMethodMessageReturns the method base from the given IMethodMessage.
Public methodStatic memberGetObjectDataSerializes the specified marshal by reference object into the provided SerializationInfo.
Public methodStatic memberGetObjectUriRetrieves the URI for the specified object.
Public methodStatic memberGetObjRefForProxyReturns the ObjRef that represents the remote object from the specified proxy.
Public methodStatic memberGetRealProxyReturns the real proxy backing the specified transparent proxy.
Public methodStatic memberGetServerTypeForUriReturns the Type of the object with the specified URI.
Public methodStatic memberGetSessionIdForMethodMessageRetrieves a session ID for a message.
Public methodStatic memberIsMethodOverloadedReturns a Boolean value that indicates whether the method in the given message is overloaded.
Public methodStatic memberIsObjectOutOfAppDomainReturns 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.
Public methodStatic memberIsObjectOutOfContextReturns 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.
Public methodStatic memberIsOneWayReturns 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.
Public methodStatic memberIsTransparentProxyReturns a Boolean value that indicates whether the given object is a transparent proxy or a real object.
Public methodStatic memberLogRemotingStageInfrastructure. Obsolete. Logs the stage in a remoting exchange to an external debugger.
Public methodStatic memberMarshal(MarshalByRefObject)Takes a MarshalByRefObject, registers it with the remoting infrastructure, and converts it into an instance of the ObjRef class.
Public methodStatic memberMarshal(MarshalByRefObject, String)Converts the given MarshalByRefObject into an instance of the ObjRef class with the specified URI.
Public methodStatic memberMarshal(MarshalByRefObject, String, Type)Takes a MarshalByRefObject and converts it into an instance of the ObjRef class with the specified URI, and the provided Type.
Public methodStatic memberSetObjectUriForMarshalSets the URI for the subsequent call to the Marshal method.
Public methodStatic memberUnmarshal(ObjRef)Takes a ObjRef and creates a proxy object out of it.
Public methodStatic memberUnmarshal(ObjRef, Boolean)Takes a ObjRef and creates a proxy object out of it, refining it to the type on the server.
Top

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

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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

Community Additions

ADD
Show:
© 2014 Microsoft