共用方式為


SoapMessage.MethodInfo 屬性

定義

當在衍生類別中覆寫時,取得 SOAP 要求所適用的 XML Web Service 方法的方法原型 (Prototype) 表示。

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 Service 方法。

範例

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 期間存取,但它只會在 和 BeforeSerialize 期間 AfterDeserialize 有資料。

適用於

另請參閱