RemotingServices.GetMethodBaseFromMethodMessage(IMethodMessage) Metod

Definition

Returnerar metodbasen från angiven IMethodMessage.

public:
 static System::Reflection::MethodBase ^ GetMethodBaseFromMethodMessage(System::Runtime::Remoting::Messaging::IMethodMessage ^ msg);
public static System.Reflection.MethodBase GetMethodBaseFromMethodMessage(System.Runtime.Remoting.Messaging.IMethodMessage msg);
[System.Security.SecurityCritical]
public static System.Reflection.MethodBase GetMethodBaseFromMethodMessage(System.Runtime.Remoting.Messaging.IMethodMessage msg);
static member GetMethodBaseFromMethodMessage : System.Runtime.Remoting.Messaging.IMethodMessage -> System.Reflection.MethodBase
[<System.Security.SecurityCritical>]
static member GetMethodBaseFromMethodMessage : System.Runtime.Remoting.Messaging.IMethodMessage -> System.Reflection.MethodBase
Public Shared Function GetMethodBaseFromMethodMessage (msg As IMethodMessage) As MethodBase

Parametrar

msg
IMethodMessage

Metodmeddelandet som metodbasen ska extraheras från.

Returer

Metodbasen som extraherats från parametern msg .

Attribut

Undantag

Antingen har den omedelbara anroparen inte infrastrukturbehörighet, eller så har minst en av anroparna högre i anropsstacken inte behörighet att hämta typinformationen för icke-offentliga medlemmar.

Kommentarer

Detta avgör metodbasen TypeNamefrån egenskaperna MethodName , MethodSignatureoch IMethodMessage för och används av klasser som implementerar IMethodMessage gränssnittet. Användare av IMethodMessage klasser bör referera till IMethodMessage.MethodBase egenskapen.

Gäller för