Bagikan melalui


SoapMessage.Action Properti

Definisi

Ketika ditimpa di kelas turunan, mendapatkan bidang header permintaan HTTP SOAPAction untuk permintaan SOAP atau respons SOAP.

public:
 abstract property System::String ^ Action { System::String ^ get(); };
public abstract string Action { get; }
member this.Action : string
Public MustOverride ReadOnly Property Action As String

Nilai Properti

Bidang header permintaan HTTP SOAPAction untuk permintaan SOAP atau respons SOAP.

Contoh

myStreamWriter->WriteLine( "The contents of the SOAPAction HTTP header is:" );
myStreamWriter->WriteLine( "\t{0}", message->Action );
myStreamWriter.WriteLine(
   "The contents of the SOAPAction HTTP header is:");
myStreamWriter.WriteLine("\t" + message.Action);
myStreamWriter.WriteLine("The contents of the SOAPAction HTTP header is:")
myStreamWriter.WriteLine(ControlChars.Tab & message.Action)

Keterangan

Properti Action dapat diakses selama .SoapMessageStage

Berlaku untuk