Sdílet prostřednictvím


RemotingServices.GetMethodBaseFromMethodMessage(IMethodMessage) Metoda

Definice

Vrátí základ metody z dané IMethodMessagemetody .

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

Parametry

msg
IMethodMessage

Zpráva metody, ze které se má extrahovat základ metody.

Návraty

Základ metody extrahovaný z parametru msg .

Atributy

Výjimky

Buď přímý volající nemá oprávnění k infrastruktuře, nebo alespoň jeden z volajících výše v seznamu volání nemá oprávnění k načtení informací o typu neveřejných členů.

Poznámky

To určuje základ metody z TypeNamevlastností , MethodNamea MethodSignature a IMethodMessage a je používána třídami implementovanými IMethodMessage rozhraní. IMethodMessage Příjemci tříd by měli odkazovat na IMethodMessage.MethodBase vlastnost .

Platí pro