HierarchyIdException Class
The exception that is thrown for invalid SqlHierarchyId values.
Inheritance Hierarchy
System.Object
System.Exception
Microsoft.SqlServer.Types.HierarchyIdException
Namespace: Microsoft.SqlServer.Types
Assembly: Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
Syntax
'Declaration
<SerializableAttribute> _
<CLSCompliantAttribute(True)> _
Public Class HierarchyIdException _
Inherits Exception
'Usage
Dim instance As HierarchyIdException
[SerializableAttribute]
[CLSCompliantAttribute(true)]
public class HierarchyIdException : Exception
[SerializableAttribute]
[CLSCompliantAttribute(true)]
public ref class HierarchyIdException : public Exception
[<SerializableAttribute>]
[<CLSCompliantAttribute(true)>]
type HierarchyIdException =
class
inherit Exception
end
public class HierarchyIdException extends Exception
The HierarchyIdException type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HierarchyIdException() | Initializes a new instance of the HierarchyIdException class. | |
HierarchyIdException(String) | Initializes a new instance of the HierarchyIdException class with a custom error message. | |
HierarchyIdException(SerializationInfo, StreamingContext) | Initializes a new instance of the HierarchyIdException class with serialized data. | |
HierarchyIdException(String, Exception) | Initializes a new instance of the HierarchyIdExceptionclass with a custom error message and the triggering exception object. |
Top
Properties
Name | Description | |
---|---|---|
Data | (Inherited from Exception.) | |
HelpLink | (Inherited from Exception.) | |
HResult | (Inherited from Exception.) | |
InnerException | (Inherited from Exception.) | |
Message | (Inherited from Exception.) | |
Source | (Inherited from Exception.) | |
StackTrace | (Inherited from Exception.) | |
TargetSite | (Inherited from Exception.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetBaseException | (Inherited from Exception.) | |
GetHashCode | (Inherited from Object.) | |
GetObjectData | (Inherited from Exception.) | |
GetType | (Inherited from Exception.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Exception.) |
Top
Remarks
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.