SoapMessage.MethodInfo 属性

定义

在派生类中重写时,获取 SOAP 请求所针对的 XML Web 服务方法的方法原型的表示形式。

public:
 abstract property System::Web::Services::Protocols::LogicalMethodInfo ^ MethodInfo { System::Web::Services::Protocols::LogicalMethodInfo ^ get(); };
public abstract System.Web.Services.Protocols.LogicalMethodInfo MethodInfo { get; }
member this.MethodInfo : System.Web.Services.Protocols.LogicalMethodInfo
Public MustOverride ReadOnly Property MethodInfo As LogicalMethodInfo

属性值

一个 LogicalMethodInfo 表示 SOAP 请求所针对的 XML Web 服务方法。

示例

myStreamWriter->WriteLine(
   "The method that has been invoked is: " );
myStreamWriter->WriteLine( "\t{0}", message->MethodInfo );
myStreamWriter.WriteLine("The method that has been invoked is: ");
myStreamWriter.WriteLine("\t" + message.MethodInfo);
myStreamWriter.WriteLine("The method that has been invoked is: ")
myStreamWriter.WriteLine(ControlChars.Tab & message.MethodInfo.ToString())

注解

虽然 MethodInfo 可以在任何 SoapMessageStage期间访问,但它只具有期间 AfterDeserialize 和期间 BeforeSerialize的数据。

适用于

另请参阅