Freigeben über


NativeSqlConnectionException-Klasse

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

Vererbungshierarchie

System.Object
  System.Exception
    Microsoft.SqlServer.Replication.ReplicationAgentException
      Microsoft.SqlServer.Replication.NativeSqlConnectionException

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Replication (in Microsoft.SqlServer.Replication.dll)

Syntax

'Declaration
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public Class NativeSqlConnectionException _
    Inherits ReplicationAgentException
'Usage
Dim instance As NativeSqlConnectionException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public class NativeSqlConnectionException : ReplicationAgentException
[SerializableAttribute]
[ComVisibleAttribute(false)]
public ref class NativeSqlConnectionException : public ReplicationAgentException
[<SerializableAttribute>]
[<ComVisibleAttribute(false)>]
type NativeSqlConnectionException =  
    class 
        inherit ReplicationAgentException 
    end
public class NativeSqlConnectionException extends ReplicationAgentException

Der NativeSqlConnectionException-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode NativeSqlConnectionException() Creates a new instance of the NativeSqlConnectionException class.
Öffentliche Methode NativeSqlConnectionException(String) Creates a new instance of the NativeSqlConnectionException class with a specified error message.
Geschützte Methode NativeSqlConnectionException(SerializationInfo, StreamingContext) Creates a new instance of the NativeSqlConnectionException class with serialized data.
Öffentliche Methode 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.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Data (Geerbt von Exception.)
Öffentliche Eigenschaft ErrorSource The source of the error.
Öffentliche Eigenschaft HelpLink (Geerbt von Exception.)
Öffentliche Eigenschaft HResult (Geerbt von Exception.)
Öffentliche Eigenschaft InnerException (Geerbt von Exception.)
Öffentliche Eigenschaft Message (Geerbt von Exception.)
Öffentliche Eigenschaft MessageCode Gets the error code of the underlying error. (Geerbt von ReplicationAgentException.)
Öffentliche Eigenschaft Source (Geerbt von Exception.)
Öffentliche Eigenschaft SqlState Indicates the Microsoft SQL Server SQL state for the error.
Öffentliche Eigenschaft StackTrace (Geerbt von Exception.)
Öffentliche Eigenschaft TargetSite (Geerbt von Exception.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetBaseException (Geerbt von Exception.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetObjectData Sets the specified SerializationInfo with information about the exception. (Überschreibt ReplicationAgentException.GetObjectData(SerializationInfo, StreamingContext).)
Öffentliche Methode GetType (Geerbt von Exception.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Exception.)

Zum Anfang

Ereignisse

  Name Beschreibung
Geschütztes Ereignis SerializeObjectState (Geerbt von Exception.)

Zum Anfang

Hinweise

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

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Replication-Namespace