ReplicationAgentException Constructor (String, Exception)

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

命名空间: Microsoft.SqlServer.Replication
程序集: Microsoft.SqlServer.Replication (in microsoft.sqlserver.replication.dll)

语法

声明
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
public ReplicationAgentException (
    string message,
    Exception innerException
)
public:
ReplicationAgentException (
    String^ message, 
    Exception^ innerException
)
public ReplicationAgentException (
    String message, 
    Exception innerException
)
public function ReplicationAgentException (
    message : String, 
    innerException : Exception
)

参数

  • message
    The error message that explains the reason for the exception.
  • innerException
    The exception that is the cause of the current exception.

备注

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

Property

Value

InnerException

The inner exception reference.

Message

The error message string.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

ReplicationAgentException Class
ReplicationAgentException Members
Microsoft.SqlServer.Replication Namespace