System.Runtime.Remoting.Messaging.IMethodCallMessage Interface

Assembly: Mscorlib.dll
Namespace: System.Runtime.Remoting.Messaging
Summary
Defines the method call message interface.
C# Syntax:
public interface IMethodCallMessage : IMethodMessage, IMessage
Remarks
An IMethodCallMessage is generated as a result of a method called on a remote object, and is used to transport details about the remote method call to the server side.
See also:
System.Runtime.Remoting.Messaging Namespace

System.Runtime.Remoting.Messaging.IMethodCallMessage Member List:

Public Properties
InArgCount Read-only

Gets the number of arguments in the call that are not marked as out parameters.
InArgs Read-only

Gets an array of arguments that are not marked as out parameters.
Public Methods
GetInArg Returns the specified argument that is not marked as an out parameter.
GetInArgName Returns the name of the specified argument that is not marked as an out parameter.

Hierarchy:


System.Runtime.Remoting.Messaging.IMethodCallMessage Member Details

Property: InArgCount (read-only)
Summary
Gets the number of arguments in the call that are not marked as out parameters.
C# Syntax:
int InArgCount {get;}

Return to top


Property: InArgs (read-only)
Summary
Gets an array of arguments that are not marked as out parameters.
C# Syntax:
object[] InArgs {get;}
Remarks
Although the IMethodCallMessage.InArgs property is redundant since the same functionality can be achieved with the IMethodCallMessage.InArgCount and IMethodCallMessage.GetInArg methods, there might be performance optimization available if the implementer understands when all the arguments will be retrieved.

Return to top


Method: GetInArg(
   int argNum
)
Summary
Returns the specified argument that is not marked as an out parameter.
C# Syntax:
object GetInArg(
   int argNum
);
Parameters:

argNum

The number of the requested in argument.

Return Value:
The requested argument that is not marked as an out parameter.

Return to top


Method: GetInArgName(
   int index
)
Summary
Returns the name of the specified argument that is not marked as an out parameter.
C# Syntax:
string GetInArgName(
   int index
);
Parameters:

index

The number of the requested in argument.

Return Value:
The name of a specific argument that is not marked as an out parameter.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.