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