Export (0) Print
Expand All

HierarchyIdException Class

 

Applies To: SQL Server 2016 Preview

The exception that is thrown for invalid SqlHierarchyId values.

Namespace:   Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

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

[SerializableAttribute]
[CLSCompliantAttribute(true)]
public class HierarchyIdException : Exception

NameDescription
System_CAPS_pubmethodHierarchyIdException()

Initializes a new instance of the HierarchyIdException class.

System_CAPS_protmethodHierarchyIdException(SerializationInfo, StreamingContext)

Initializes a new instance of the HierarchyIdException class with serialized data.

System_CAPS_pubmethodHierarchyIdException(String)

Initializes a new instance of the HierarchyIdException class with a custom error message.

System_CAPS_pubmethodHierarchyIdException(String, Exception)

Initializes a new instance of the HierarchyIdExceptionclass with a custom error message and the triggering exception object.

NameDescription
System_CAPS_pubpropertyData

(Inherited from Exception.)

System_CAPS_pubpropertyHelpLink

(Inherited from Exception.)

System_CAPS_protpropertyHResult

(Inherited from Exception.)

System_CAPS_pubpropertyInnerException

(Inherited from Exception.)

System_CAPS_pubpropertyMessage

(Inherited from Exception.)

System_CAPS_pubpropertySource

(Inherited from Exception.)

System_CAPS_pubpropertyStackTrace

(Inherited from Exception.)

System_CAPS_pubpropertyTargetSite

(Inherited from Exception.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

(Inherited from Exception.)

System_CAPS_pubmethodGetType()

(Inherited from Exception.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Exception.)

The HierarchyIdException exception is thrown when a value that is not a SqlHierarchyId type is passed to a method that expects a SqlHierarchyId type.

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

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft