共用方式為


ReplicationAgentContainerException Constructors

Definition

Creates a new instance of the ReplicationAgentContainerException class.

Overloads

ReplicationAgentContainerException()

Creates a new instance of the ReplicationAgentContainerException class.

ReplicationAgentContainerException(String)

Creates a new instance of the ReplicationAgentContainerException class with a specified error message.

ReplicationAgentContainerException(SerializationInfo, StreamingContext)

Creates a new instance of the ReplicationAgentContainerException class with specified information and context..

ReplicationAgentContainerException(String, Exception)

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

ReplicationAgentContainerException()

Creates a new instance of the ReplicationAgentContainerException class.

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

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error.

The following table shows the initial property values for an instance of ReplicationAgentContainerException.

Property Value
InnerException A null reference.
Message A system-supplied localized description.

Applies to

ReplicationAgentContainerException(String)

Creates a new instance of the ReplicationAgentContainerException class with a specified error message.

public:
 ReplicationAgentContainerException(System::String ^ message);
public ReplicationAgentContainerException (string message);
new Microsoft.SqlServer.Replication.ReplicationAgentContainerException : string -> Microsoft.SqlServer.Replication.ReplicationAgentContainerException
Public Sub New (message As String)

Parameters

message
String

A message that describes the error.

Remarks

The following table shows the initial property values for an instance of ReplicationAgentContainerException.

Property Value
InnerException A null reference (Nothing in Visual Basic).
Message The error message string.

Applies to

ReplicationAgentContainerException(SerializationInfo, StreamingContext)

Creates a new instance of the ReplicationAgentContainerException class with specified information and context..

protected:
 ReplicationAgentContainerException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ReplicationAgentContainerException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.SqlServer.Replication.ReplicationAgentContainerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.SqlServer.Replication.ReplicationAgentContainerException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The information.

context
StreamingContext

The context.

Applies to

ReplicationAgentContainerException(String, Exception)

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

public:
 ReplicationAgentContainerException(System::String ^ message, Exception ^ innerException);
public ReplicationAgentContainerException (string message, Exception innerException);
new Microsoft.SqlServer.Replication.ReplicationAgentContainerException : string * Exception -> Microsoft.SqlServer.Replication.ReplicationAgentContainerException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception.

Remarks

The following table shows the initial property values for an instance of ReplicationAgentContainerException.

Property Value
InnerException The inner exception reference.
Message The error message string.

Applies to