Condividi tramite


SoapMessage.GetReturnValue Metodo

Definizione

Ottiene il valore restituito di un metodo di servizio Web XML.

public:
 System::Object ^ GetReturnValue();
public object GetReturnValue();
member this.GetReturnValue : unit -> obj
Public Function GetReturnValue () As Object

Restituisce

Oggetto Object che rappresenta il valore restituito del metodo del servizio Web XML.

Eccezioni

Il metodo del servizio Web XML non ha un valore restituito.

oppure

Il valore restituito non è disponibile.

Esempio

myStreamWriter->WriteLine( "The values of the return parameter are:" );
myStreamWriter->WriteLine(
   "The value of the return parameter is: {0}", message->GetReturnValue() );
myStreamWriter.WriteLine("The values of the return parameter are:");
myStreamWriter.WriteLine("The value of the return parameter is: {0}",
   message.GetReturnValue());
myStreamWriter.WriteLine("The values of the return parameter are:")
myStreamWriter.WriteLine("The value of the return parameter is: {0}", _
   message.GetReturnValue())

Commenti

Se un valore restituito non è disponibile, ASP.NET genera InvalidOperationException un'eccezione quando si accede alla GetReturnValue() proprietà .

In un SoapClientMessage valore restituito è disponibile quando il SoapMessageStage valore è AfterDeserialize. In un SoapServerMessage valore restituito è disponibile quando SoapMessageStage il valore è BeforeSerialize.

Si applica a