Udostępnij za pośrednictwem


ConnectionFailureException Class

Definition

The exception that is thrown when a database connection fails when a replication agent is running.

public ref class ConnectionFailureException : Microsoft::SqlServer::Replication::ReplicationAgentException
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public class ConnectionFailureException : Microsoft.SqlServer.Replication.ReplicationAgentException
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Serializable>]
type ConnectionFailureException = class
    inherit ReplicationAgentException
Public Class ConnectionFailureException
Inherits ReplicationAgentException
Inheritance
ConnectionFailureException
Attributes

Constructors

ConnectionFailureException()

Initializes a new instance of the ConnectionFailureException class.

ConnectionFailureException(SerializationInfo, StreamingContext)

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

ConnectionFailureException(String, Exception)

Initializes a new instance of the ConnectionFailureException class with a specified error message and a reference to the inner exception that is the cause of this exception.

ConnectionFailureException(String)

Initializes a new instance of the ConnectionFailureException class with a specified error message.

Properties

MessageCode

Gets the error code of the underlying error.

(Inherited from ReplicationAgentException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Sets the specified SerializationInfo with information about the exception.

(Inherited from ReplicationAgentException)

Applies to