Gets the SoapException from the call to the XML Web service method.
Public Property Exception As SoapException
Dim instance As SoapMessage Dim value As SoapException value = instance.Exception instance.Exception = value
public SoapException Exception { get; set; }
public: property SoapException^ Exception { SoapException^ get (); void set (SoapException^ value); }
public function get Exception () : SoapException public function set Exception (value : SoapException)
The Exception property can be accessed during any SoapMessageStage.
If Not (mySoapMessage.Exception Is Nothing) Then myStreamWriter.WriteLine("A SoapException occurred!!!") myStreamWriter.WriteLine(mySoapMessage.Exception.Message) End If
if (mySoapMessage.Exception != null) { myStreamWriter.WriteLine("A SoapException occurred!!!"); myStreamWriter.WriteLine(mySoapMessage.Exception.Message); }
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC