HierarchyIdException Constructor (String)

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

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

Syntax

'Declaration
Public Sub New ( _
    message As String _
)
'Usage
Dim message As String

Dim instance As New HierarchyIdException(message)
public HierarchyIdException(
    string message
)
public:
HierarchyIdException(
    String^ message
)
new : 
        message:string -> HierarchyIdException
public function HierarchyIdException(
    message : String
)

Parameters

  • message
    Type: System.String
    A string that contains the custom error message.

Remarks

This constructor is called when an object throwing the exception is passing custom error information.

See Also

Reference

HierarchyIdException Class

HierarchyIdException Overload

Microsoft.SqlServer.Types Namespace