Share via


SoapMessage.Action 屬性

定義

當在衍生類別中覆寫時,取得 SOAP 要求或 SOAP 回應的 SOAPAction HTTP 要求標頭欄位。

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

屬性值

SOAP 要求或 SOAP 回應的 SOAPAction HTTP 要求標頭欄位。

範例

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)

備註

您可以在 Action 任何 SoapMessageStage 期間存取 屬性。

適用於