Bagikan melalui


SoapMessage.MethodInfo Properti

Definisi

Ketika ditimpa di kelas turunan, mendapatkan representasi prototipe metode untuk metode layanan Web XML tempat permintaan SOAP dimaksudkan.

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

Nilai Properti

Yang LogicalMethodInfo mewakili metode layanan Web XML tempat permintaan SOAP dimaksudkan.

Contoh

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

Keterangan

Meskipun MethodInfo dapat diakses selama apa pun SoapMessageStage, itu hanya memiliki data selama AfterDeserialize dan BeforeSerialize.

Berlaku untuk

Lihat juga