Export (0) Print
Expand All

HierarchyIdException Class

The exception that is thrown for invalid SqlHierarchyId values.

Object
  Exception
    Microsoft.SqlServer.Types.HierarchyIdException

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

'Declaration
<SerializableAttribute> _
<CLSCompliantAttribute(True)> _
Public Class HierarchyIdException _
	Inherits Exception
'Usage
Dim instance As HierarchyIdException

The HierarchyIdException type exposes the following members.

  NameDescription
Public methodHierarchyIdExceptionInitializes a new instance of the HierarchyIdException class.
Public methodHierarchyIdException(String)Initializes a new instance of the HierarchyIdException class with a custom error message.
Protected methodHierarchyIdException(SerializationInfo, StreamingContext)Initializes a new instance of the HierarchyIdException class with serialized data.
Public methodHierarchyIdException(String, Exception)Initializes a new instance of the HierarchyIdExceptionclass with a custom error message and the triggering exception object.
Top

  NameDescription
Public propertyData (Inherited from Exception.)
Public propertyHelpLink (Inherited from Exception.)
Public propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyMessage (Inherited from Exception.)
Public propertySource (Inherited from Exception.)
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectDataSecurity Critical. (Inherited from Exception.)
Public methodGetType (Inherited from Exception.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Exception.)
Top

  NameDescription
Protected eventSerializeObjectState (Inherited from Exception.)
Top

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

For more information, see Working with hierarchyid Data.

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

Community Additions

ADD
Show:
© 2014 Microsoft