Share via


RemotingServices.GetMethodBaseFromMethodMessage(IMethodMessage) 方法

定義

從指定的 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

參數

msg
IMethodMessage

擷取方法基底的來源方法訊息。

傳回

msg 參數擷取的方法基底。

屬性

例外狀況

立即呼叫端沒有基礎結構權限,或至少呼叫堆疊中較高的一個呼叫端沒有權限,以擷取非公用成員的型別資訊。

備註

這會從 TypeName 的 、 MethodNameMethodSignature 屬性 IMethodMessage 判斷 方法基底,而且是由實作 介面的 IMethodMessage 類別使用。 類別的 IMethodMessage 取用者應該參考 IMethodMessage.MethodBase 屬性。

適用於