Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SoapMessage.MethodInfo Property

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.

Namespace:  System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

public abstract LogicalMethodInfo MethodInfo { get; }

Property Value

Type: System.Web.Services.Protocols.LogicalMethodInfo
A LogicalMethodInfo representing the XML Web service method for which the SOAP request is intended.

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

myStreamWriter.WriteLine("The method that has been invoked is: ");
myStreamWriter.WriteLine("\t" + message.MethodInfo);

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft