通过


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)

注解

可以在任何过程中SoapMessageStage访问该Action属性。

适用于