共用方式為


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.

命名空間: Microsoft.SqlServer.NotificationServices
組件: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)

語法

'宣告
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
)

參數

  • 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.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

NSException Class
NSException Members
Microsoft.SqlServer.NotificationServices Namespace