RemotingServices.GetMethodBaseFromMethodMessage Method (IMethodMessage)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the method base from the given IMethodMessage.

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

[SecurityCriticalAttribute]
public static MethodBase GetMethodBaseFromMethodMessage(
	IMethodMessage msg
)

Parameters

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
SecurityException

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.

SecurityPermission

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

.NET Framework
Available since 1.1
Return to top
Show: