HostException Constructor

Creates a new HostException object. The variants of this constructor can create an empty object, an object that contains an exception message, and more.

NameDescription
HostException ()Creates a new HostException object that is empty.
HostException (SerializationInfo, StreamingContext)Creates a new HostException object that contains information that is read from the provided serialization information.
HostException (String)Creates a new HostException object that contains an exception message.
HostException (String, Exception)Creates a new HostException object that contains an exception message and the inner exception that caused this exception to be thrown.
HostException (String, Exception, String, ErrorCategory)Creates a new HostException object that contains an exception message, an inner exception, an error instance identifier, and an error category identifier.


Show:
© 2014 Microsoft