See Also

TraceEventArgs Class  | TraceEventArgs Members

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

See Also Languages PowerTCP SSL Sockets for .NET

Exception Property

Dart.PowerTCP.SslSockets Namespace > TraceEventArgs Class : Exception Property (TraceEventArgs)

Gets any exception which occurred during the asynchronous operation.

[Visual Basic]
Public Property Exception As Exception
[C#]
public Exception Exception {get; set;}
[C++]
public: __property Exception* get_Exception(); public: __property void set_Exception(    Exception* value );
[C++/CLI]
public: property Exception^ Exception {    Exception^ get();    void set (Exception^ value); }

Return Type

If any exception occurred during the asynchronous operation, this property will contain an Exception object describing the exception.

Remarks

Check this property to tell if an exception occurred during the asynchronous operation. If this property is null, no exception occurred.

The exception property is useful for checking exceptions and handling them appropriately. For example, if a bad command was sent to the server, a ProtocolException may be thrown. You could check this property to see if it was of type ProtocolException, than handle appropriately.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

TraceEventArgs Class  | TraceEventArgs Members


Send comments on this topic.

Documentation version 1.1.2.0.

© 2008 Dart Communications.  All rights reserved.