MethodCall Class

 

This API supports the product 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.

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

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

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

NameDescription
System_CAPS_pubmethodMethodCall(Header[])

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the MethodCall class from an array of remoting headers.

System_CAPS_pubmethodMethodCall(IMessage)

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the MethodCall class by copying an existing message.

NameDescription
System_CAPS_pubpropertyArgCount

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the number of arguments passed to a method.

System_CAPS_pubpropertyArgs

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an array of arguments passed to a method.

System_CAPS_pubpropertyHasVarArgs

This API supports the product infrastructure and is not intended to be used directly from your code. Gets a value that indicates whether the method can accept a variable number of arguments.

System_CAPS_pubpropertyInArgCount

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the number of arguments in the method call that are not marked as out parameters.

System_CAPS_pubpropertyInArgs

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an array of arguments in the method call that are not marked as out parameters.

System_CAPS_pubpropertyLogicalCallContext

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the LogicalCallContext for the current method call.

System_CAPS_pubpropertyMethodBase

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the MethodBase of the called method.

System_CAPS_pubpropertyMethodName

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the name of the invoked method.

System_CAPS_pubpropertyMethodSignature

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an object that contains the method signature.

System_CAPS_pubpropertyProperties

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an IDictionary interface that represents a collection of the remoting message's properties.

System_CAPS_pubpropertyTypeName

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the full type name of the remote object on which the method call is being made.

System_CAPS_pubpropertyUri

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the Uniform Resource Identifier (URI) of the remote object on which the method call is being made.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetArg(Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets a method argument, as an object, at a specified index.

System_CAPS_pubmethodGetArgName(Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the name of a method argument at a specified index.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetInArg(Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets a method argument at a specified index that is not marked as an out parameter.

System_CAPS_pubmethodGetInArgName(Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the name of a method argument at a specified index that is not marked as an out parameter.

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

This API supports the product infrastructure and is not intended to be used directly from your code. The GetObjectData method is not implemented.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodHeaderHandler(Header[])

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes an internal serialization handler from an array of remoting headers that are applied to a method.

System_CAPS_pubmethodInit()

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a MethodCall.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodResolveMethod()

This API supports the product infrastructure and is not intended to be used directly from your code. Sets method information from previously initialized remoting message properties.

System_CAPS_pubmethodRootSetObjectData(SerializationInfo, StreamingContext)

This API supports the product infrastructure and is not intended to be used directly from your code. Sets method information from serialization settings.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_protfieldExternalProperties

This API supports the product infrastructure and is not intended to be used directly from your code. An IDictionary interface that represents a collection of the remoting message's properties.

System_CAPS_protfieldInternalProperties

This API supports the product infrastructure and is not intended to be used directly from your code. An IDictionary interface that represents a collection of the remoting message's properties.

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
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: