共用方式為


NativeSqlConnectionException Class

Definition

The exception that is thrown when an error is raised by an ODBC driver or an OLEDB provider during bulk copy operations.

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

Remarks

ODBC and OLEDB are used when bulk copying data to generate the initial snapshot.

Constructors

NativeSqlConnectionException()

Creates a new instance of the NativeSqlConnectionException class.

NativeSqlConnectionException(SerializationInfo, StreamingContext)

Creates a new instance of the NativeSqlConnectionException class with serialized data.

NativeSqlConnectionException(String, Exception)

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

NativeSqlConnectionException(String)

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

Properties

ErrorSource

The source of the error.

MessageCode

Gets the error code of the underlying error.

(Inherited from ReplicationAgentException)
SqlState

Indicates the Microsoft SQL Server SQL state for the error.

Methods

GetObjectData(SerializationInfo, StreamingContext)

Sets the specified SerializationInfo with information about the exception.

Applies to