SoapMessage.MethodInfo 属性

定义

当在派生类中重写时,获取为要其发出 SOAP 请求的 XML Web services 方法的方法原型的表示形式。

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

一个 LogicalMethodInfo,它表示使用 SOAP 请求的 XML Web services 方法。

示例

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期间访问,但它只具有数据和AfterDeserializeBeforeSerialize数据。

适用于

另请参阅