ChannelTerminatedException Constructor

ChannelTerminatedException Constructor

Initializes a new instance of the ChannelTerminatedException class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method ChannelTerminatedException() Initializes a new instance of the ChannelTerminatedException class.
Public method ChannelTerminatedException(String) Initializes a new instance of the ChannelTerminatedException class with a specified error message.
Protected method ChannelTerminatedException(SerializationInfo, StreamingContext) Initializes a new instance of the ChannelTerminatedException class with serialization information and streaming context specified.
Public method ChannelTerminatedException(String, Exception) Initializes a new instance of the ChannelTerminatedException class with a specified error message and a reference to the inner exception that is the cause of the exception.
Top

If you want to pass an error message to the user, use the ChannelTerminatedException(String) constructor.

If you want to pass an error message and a reference to the inner exception that is the cause of the exception to the user, use the ChannelTerminatedException(String, Exception) constructor.

If you want to pass serialization information and streaming context, use the ChannelTerminatedException(SerializationInfo, StreamingContext) constructor.

Community Additions

ADD
Show:
© 2016 Microsoft