Editare

Partajați prin


PeerToPeerException Constructors

Definition

Initializes a new instance of the PeerToPeerException class.

Overloads

PeerToPeerException()

Initializes a new default instance of the PeerToPeerException class.

PeerToPeerException(String)

Initializes a new instance of the PeerToPeerException class with the supplied message string.

PeerToPeerException(SerializationInfo, StreamingContext)

Initializes a new instance of the PeerToPeerException class with serialized data.

PeerToPeerException(String, Exception)

Initializes a new instance of the PeerToPeerException class with the supplied message string and exception.

PeerToPeerException()

Initializes a new default instance of the PeerToPeerException class.

public:
 PeerToPeerException();
public PeerToPeerException ();
Public Sub New ()

See also

Applies to

PeerToPeerException(String)

Initializes a new instance of the PeerToPeerException class with the supplied message string.

public:
 PeerToPeerException(System::String ^ message);
public PeerToPeerException (string message);
new System.Net.PeerToPeer.PeerToPeerException : string -> System.Net.PeerToPeer.PeerToPeerException
Public Sub New (message As String)

Parameters

message
String

The error message that provides the reason for the exception.

See also

Applies to

PeerToPeerException(SerializationInfo, StreamingContext)

Initializes a new instance of the PeerToPeerException class with serialized data.

protected:
 PeerToPeerException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected PeerToPeerException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Net.PeerToPeer.PeerToPeerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.PeerToPeer.PeerToPeerException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

Reference to the object that holds the data needed to deserialize the object.

context
StreamingContext

Context that provides the means for deserializing the PeerToPeerException data. Also referred to as the source of the serialized data.

See also

Applies to

PeerToPeerException(String, Exception)

Initializes a new instance of the PeerToPeerException class with the supplied message string and exception.

public:
 PeerToPeerException(System::String ^ message, Exception ^ innerException);
public PeerToPeerException (string message, Exception innerException);
new System.Net.PeerToPeer.PeerToPeerException : string * Exception -> System.Net.PeerToPeer.PeerToPeerException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the PeerToPeerException.

innerException
Exception

The exception instance that caused the current Exception.

See also

Applies to