SoapMessage.OneWay Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
XML Web hizmeti yöntemine OneWay uygulanan veya SoapDocumentMethodAttribute özniteliğinin SoapRpcMethodAttribute özelliğini gösteren bir değer alır.
public:
abstract property bool OneWay { bool get(); };
public abstract bool OneWay { get; }
member this.OneWay : bool
Public MustOverride ReadOnly Property OneWay As Boolean
Özellik Değeri
true
OneWay XML Web hizmeti yöntemine SoapDocumentMethodAttributeuygulanan veya SoapRpcMethodAttribute özelliğinin true ; değilse, false.
Örnekler
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
Açıklamalar
SoapDocumentMethodAttribute.OneWay Tek yönlü XML Web hizmeti yöntemleri hakkında ayrıntılı bilgi için veya SoapDocumentMethodAttribute özelliğine SoapRpcMethodAttribute bakın.
özelliğine OneWay tüm aşamalarında SoapMessageStageerişilebilir.