다음을 통해 공유


SoapMessage.OneWay 속성

정의

XML 웹 서비스 메서드에 OneWay 적용된 특성 또는 SoapRpcMethodAttribute 특성의 SoapDocumentMethodAttribute 속성을 나타내는 값을 가져옵니다.

public:
 abstract property bool OneWay { bool get(); };
public abstract bool OneWay { get; }
member this.OneWay : bool
Public MustOverride ReadOnly Property OneWay As Boolean

속성 값

XML Web services 메서드에 적용된 속성이 />이고, 그렇지 않으면 .

예제

if ( message->OneWay )
{
   myStreamWriter->WriteLine(
      "The method invoked on the client shall not wait"
      + " till the server finishes" );
}
else
{
   myStreamWriter->WriteLine(
      "The method invoked on the client shall wait"
      + " till the server finishes" );
}
if(message.OneWay)
   myStreamWriter.WriteLine(
      "The method invoked on the client shall not wait"
      + " till the server finishes");
else
   myStreamWriter.WriteLine(
      "The method invoked on the client shall wait"
      + " till the server finishes");
If message.OneWay Then
   myStreamWriter.WriteLine( _
      "The method invoked on the client shall not wait" & _
      " till the server finishes")
Else
   myStreamWriter.WriteLine( _
      "The method invoked on the client shall wait" & _
      " till the server finishes")
End If

설명

SoapDocumentMethodAttribute.OneWay 단방향 XML 웹 서비스 메서드에 대한 자세한 내용은 속성 또는 SoapRpcMethodAttribute 해당 속성을 SoapDocumentMethodAttribute 참조하세요.

속성은 OneWay 모든 단계에서 액세스할 수 있습니다 SoapMessageStage.

적용 대상

추가 정보