RemotingServices.GetMethodBaseFromMethodMessage Method (IMethodMessage)


Returns the method base from the given IMethodMessage.

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

public static MethodBase GetMethodBaseFromMethodMessage(
	IMethodMessage msg


Type: System.Runtime.Remoting.Messaging.IMethodMessage

The method message to extract the method base from.

Return Value

Type: System.Reflection.MethodBase

The method base extracted from the msg parameter.

Exception Condition

Either the immediate caller does not have infrastructure permission, or at least one of the callers higher in the callstack does not have permission to retrieve the type information of non-public members.

This determines the method base from the TypeName, MethodName, and MethodSignature properties of IMethodMessage and is used by classes implementing the IMethodMessage interface. Consumers of IMethodMessage classes should reference the IMethodMessage.MethodBase property.


for operating with infrastructure code. Demand value: SecurityAction.LinkDemand; Permission value: SecurityPermissionFlag.Infrastructure

.NET Framework
Available since 1.1
Return to top