Share via


HierarchyIdException 类

 

针对无效的 SqlHierarchyId 值引发的异常。

命名空间:   Microsoft.SqlServer.Types
程序集:  Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)

继承层次结构

System.Object
  System.Exception
    Microsoft.SqlServer.Types.HierarchyIdException

语法

[SerializableAttribute]
[CLSCompliantAttribute(true)]
public class HierarchyIdException : Exception
[SerializableAttribute]
[CLSCompliantAttribute(true)]
public ref class HierarchyIdException : Exception
[<SerializableAttribute>]
[<CLSCompliantAttribute(true)>]
type HierarchyIdException = 
    class
        inherit Exception
    end
<SerializableAttribute>
<CLSCompliantAttribute(True)>
Public Class HierarchyIdException
    Inherits Exception

构造函数

名称 说明
System_CAPS_pubmethod HierarchyIdException()

新实例初始化 HierarchyIdException 类。

System_CAPS_protmethod HierarchyIdException(SerializationInfo, StreamingContext)

使用序列化数据初始化 HierarchyIdException 类的新实例。

System_CAPS_pubmethod HierarchyIdException(String)

使用自定义错误消息初始化 HierarchyIdException 类的新实例。

System_CAPS_pubmethod HierarchyIdException(String, Exception)

使用自定义错误消息和触发异常的对象初始化 HierarchyIdException 类的新实例。

属性

名称 说明
System_CAPS_pubproperty Data

(继承自 Exception。)

System_CAPS_pubproperty HelpLink

(继承自 Exception。)

System_CAPS_protproperty HResult

(继承自 Exception。)

System_CAPS_pubproperty InnerException

(继承自 Exception。)

System_CAPS_pubproperty Message

(继承自 Exception。)

System_CAPS_pubproperty Source

(继承自 Exception。)

System_CAPS_pubproperty StackTrace

(继承自 Exception。)

System_CAPS_pubproperty TargetSite

(继承自 Exception。)

方法

名称 说明
System_CAPS_pubmethod Equals(Object)

(继承自 Object。)

System_CAPS_protmethod Finalize()

(继承自 Object。)

System_CAPS_pubmethod GetBaseException()

(继承自 Exception。)

System_CAPS_pubmethod GetHashCode()

(继承自 Object。)

System_CAPS_pubmethod GetObjectData(SerializationInfo, StreamingContext)

(继承自 Exception。)

System_CAPS_pubmethod GetType()

(继承自 Exception。)

System_CAPS_protmethod MemberwiseClone()

(继承自 Object。)

System_CAPS_pubmethod ToString()

(继承自 Exception。)

备注

HierarchyIdException 值,或对象无效时引发异常 SqlHierarchyId 类型传递到需要的方法 SqlHierarchyId 类型。

线程安全

此类型的所有公共静态(Visual Basic 中的 已共享 在 Visual Basic 中)成员都是线程安全的。不保证所有实例成员都是线程安全的。

另请参阅

Microsoft.SqlServer.Types 命名空间

返回页首