SoapMessage.OneWay プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
XML Web サービス メソッドに適用されるSoapDocumentMethodAttributeまたはSoapRpcMethodAttribute属性のOneWay プロパティを示す値を取得します。
public:
abstract property bool OneWay { bool get(); };
public abstract bool OneWay { get; }
member this.OneWay : bool
Public MustOverride ReadOnly Property OneWay As Boolean
プロパティ値
trueXML Web サービス メソッドに適用されるSoapDocumentMethodAttributeまたはSoapRpcMethodAttributeのOneWay プロパティがtrueの場合はfalse。
例
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
注釈
一方向 XML Web サービス メソッドの詳細については、SoapDocumentMethodAttributeまたはSoapRpcMethodAttributeのSoapDocumentMethodAttribute.OneWayプロパティを参照してください。
OneWay プロパティには、SoapMessageStageのすべての段階でアクセスできます。