Edit

Share via


SoapMessage.MethodInfo Property

Definition

When overridden in a derived class, gets a representation of the method prototype for the XML Web service method for which the SOAP request is intended.

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

Property Value

A LogicalMethodInfo representing the XML Web service method for which the SOAP request is intended.

Examples

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())

Remarks

Although MethodInfo can be accessed during any SoapMessageStage, it only has data during AfterDeserialize and BeforeSerialize.

Applies to

See also