SoapMessage.OneWay Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan nilai yang menunjukkan OneWay properti atribut SoapDocumentMethodAttribute atau SoapRpcMethodAttribute yang diterapkan ke metode layanan Web XML.
public:
abstract property bool OneWay { bool get(); };
public abstract bool OneWay { get; }
member this.OneWay : bool
Public MustOverride ReadOnly Property OneWay As Boolean
Nilai Properti
true
OneWay jika properti dari SoapDocumentMethodAttribute atau SoapRpcMethodAttribute diterapkan ke metode layanan Web XML adalah true; jika tidak, false.
Contoh
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
Keterangan
SoapDocumentMethodAttribute.OneWay Lihat properti SoapDocumentMethodAttribute atau SoapRpcMethodAttribute untuk detail tentang metode layanan Web XML satu arah.
Properti OneWay ini dapat diakses di semua tahap .SoapMessageStage