SoapMessage.OneWay Tulajdonság
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Lekéri az OneWay XML-webszolgáltatás metódusára alkalmazott vagy SoapDocumentMethodAttribute az attribútum tulajdonságát SoapRpcMethodAttribute jelző értéket.
public:
abstract property bool OneWay { bool get(); };
public abstract bool OneWay { get; }
member this.OneWay : bool
Public MustOverride ReadOnly Property OneWay As Boolean
Tulajdonság értéke
trueha az OneWay XML-webszolgáltatás metódusának tulajdonsága SoapDocumentMethodAttributeSoapRpcMethodAttributetrue ; egyébként . false
Példák
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
Megjegyzések
SoapDocumentMethodAttribute.OneWay Az egyirányú XML-webszolgáltatás-metódusok tulajdonságát SoapDocumentMethodAttribute vagy SoapRpcMethodAttribute részleteit itt találja.
A OneWay tulajdonság a SoapMessageStage.