Partager via


NSException Constructor (String, Exception)

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

Espace de noms: Microsoft.SqlServer.NotificationServices
Assembly: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    message As String, _
    innerEx As Exception _
)
public NSException (
    string message,
    Exception innerEx
)
public:
NSException (
    String^ message, 
    Exception^ innerEx
)
public NSException (
    String message, 
    Exception innerEx
)
public function NSException (
    message : String, 
    innerEx : Exception
)

Paramètres

  • message
    The error message that explains the reason for the exception.
  • innerEx
    The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

NSException Class
NSException Members
Microsoft.SqlServer.NotificationServices Namespace