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期间访问 属性。

适用于