Partager via


Classe NativeSqlConnectionException

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

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Replication
Assembly :  Microsoft.SqlServer.Replication (en Microsoft.SqlServer.Replication.dll)

Syntaxe

'Déclaration
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public Class NativeSqlConnectionException _
    Inherits ReplicationAgentException
'Utilisation
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

Le type NativeSqlConnectionException expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique NativeSqlConnectionException() Creates a new instance of the NativeSqlConnectionException class.
Méthode publique NativeSqlConnectionException(String) Creates a new instance of the NativeSqlConnectionException class with a specified error message.
Méthode protégée NativeSqlConnectionException(SerializationInfo, StreamingContext) Creates a new instance of the NativeSqlConnectionException class with serialized data.
Méthode publique 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.

Haut de la page

Propriétés

  Nom Description
Propriété publique Data (hérité de Exception.)
Propriété publique ErrorSource The source of the error.
Propriété publique HelpLink (hérité de Exception.)
Propriété publique HResult (hérité de Exception.)
Propriété publique InnerException (hérité de Exception.)
Propriété publique Message (hérité de Exception.)
Propriété publique MessageCode Gets the error code of the underlying error. (hérité de ReplicationAgentException.)
Propriété publique Source (hérité de Exception.)
Propriété publique SqlState Indicates the Microsoft SQL Server SQL state for the error.
Propriété publique StackTrace (hérité de Exception.)
Propriété publique TargetSite (hérité de Exception.)

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetBaseException (hérité de Exception.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetObjectData Sets the specified SerializationInfo with information about the exception. (remplace ReplicationAgentException.GetObjectData(SerializationInfo, StreamingContext).)
Méthode publique GetType (hérité de Exception.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString (hérité de Exception.)

Haut de la page

Événements

  Nom Description
Événement protégé SerializeObjectState (hérité de Exception.)

Haut de la page

Notes

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

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Replication