Export (0) Print
Expand All

MethodCall Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Implements the IMethodCallMessage interface to create a request message that acts as a method call on a remote object.

This API is not CLS-compliant. 

System.Object
  System.Runtime.Remoting.Messaging.MethodCall
    System.Runtime.Remoting.Messaging.ConstructionCall

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

[SerializableAttribute]
[CLSCompliantAttribute(false)]
[ComVisibleAttribute(true)]
[SecurityPermissionAttribute(SecurityAction.InheritanceDemand, Flags = SecurityPermissionFlag.Infrastructure)]
public class MethodCall : IMethodCallMessage, IMethodMessage, 
	IMessage, ISerializable

The MethodCall type exposes the following members.

  NameDescription
Public methodMethodCall(Header[])Infrastructure. Initializes a new instance of the MethodCall class from an array of remoting headers.
Public methodMethodCall(IMessage)Infrastructure. Initializes a new instance of the MethodCall class by copying an existing message.
Top

  NameDescription
Public propertyArgCountInfrastructure. Gets the number of arguments passed to a method.
Public propertyArgsInfrastructure. Gets an array of arguments passed to a method.
Public propertyHasVarArgsInfrastructure. Gets a value that indicates whether the method can accept a variable number of arguments.
Public propertyInArgCountInfrastructure. Gets the number of arguments in the method call that are not marked as out parameters.
Public propertyInArgsInfrastructure. Gets an array of arguments in the method call that are not marked as out parameters.
Public propertyLogicalCallContextInfrastructure. Gets the LogicalCallContext for the current method call.
Public propertyMethodBaseInfrastructure. Gets the MethodBase of the called method.
Public propertyMethodNameInfrastructure. Gets the name of the invoked method.
Public propertyMethodSignatureInfrastructure. Gets an object that contains the method signature.
Public propertyPropertiesInfrastructure. Gets an IDictionary interface that represents a collection of the remoting message's properties.
Public propertyTypeNameInfrastructure. Gets the full type name of the remote object on which the method call is being made.
Public propertyUriInfrastructure. Gets or sets the Uniform Resource Identifier (URI) of the remote object on which the method call is being made.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetArgInfrastructure. Gets a method argument, as an object, at a specified index.
Public methodGetArgNameInfrastructure. Gets the name of a method argument at a specified index.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetInArgInfrastructure. Gets a method argument at a specified index that is not marked as an out parameter.
Public methodGetInArgNameInfrastructure. Gets the name of a method argument at a specified index that is not marked as an out parameter.
Public methodGetObjectDataInfrastructure. The GetObjectData method is not implemented.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodHeaderHandlerInfrastructure. Initializes an internal serialization handler from an array of remoting headers that are applied to a method.
Public methodInitInfrastructure. Initializes a MethodCall.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodResolveMethodInfrastructure. Sets method information from previously initialized remoting message properties.
Public methodRootSetObjectDataInfrastructure. Sets method information from serialization settings.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Protected fieldExternalPropertiesInfrastructure. An IDictionary interface that represents a collection of the remoting message's properties.
Protected fieldInternalPropertiesInfrastructure. An IDictionary interface that represents a collection of the remoting message's properties.
Top

The MethodCall class is used by the remoting infrastructure of the .NET Framework. You do not need to create an instance of the MethodCall class directly; instead, use the IMethodCallMessage interface.

MethodCall contains remoting data that is passed between message sinks. A remoting client sends a MethodCall message to a server.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Show:
© 2014 Microsoft