共用方式為


NSException Class

The exception that is thrown when a Notification Services application error occurs.

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

語法

'宣告
<SerializableAttribute> _
Public NotInheritable Class NSException
    Inherits Exception
    Implements ISerializable
[SerializableAttribute] 
public sealed class NSException : Exception, ISerializable
[SerializableAttribute] 
public ref class NSException sealed : public Exception, ISerializable
/** @attribute SerializableAttribute() */ 
public final class NSException extends Exception implements ISerializable
SerializableAttribute 
public final class NSException extends Exception implements ISerializable

備註

The NSException class is used to encompass a number of different errors that might occur during the execution or management of a Notification Services instance or application. The different errors can be distinguished via the error code values returned by the ErrorCode property.

Inheritance Hierarchy

System.Object
   System.Exception
    Microsoft.SqlServer.NotificationServices.NSException

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

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

目標平台

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

請參閱

參考

NSException Members
Microsoft.SqlServer.NotificationServices Namespace