HierarchyIdException Constructors

Definition

Overloads

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.

HierarchyIdException()

Initializes a new instance of the HierarchyIdException class.

public HierarchyIdException ();
Public Sub New ()

Applies to

HierarchyIdException(String)

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

public HierarchyIdException (string message);
new Microsoft.SqlServer.Types.HierarchyIdException : string -> Microsoft.SqlServer.Types.HierarchyIdException
Public Sub New (message As String)

Parameters

message
String

A string that contains the custom error message.

Applies to

HierarchyIdException(SerializationInfo, StreamingContext)

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

protected HierarchyIdException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.SqlServer.Types.HierarchyIdException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.SqlServer.Types.HierarchyIdException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

An object that contains the serialized object data about the exception that is thrown.

context
StreamingContext

An object that contains the contextual information about the source or destination

Applies to

HierarchyIdException(String, Exception)

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

public HierarchyIdException (string message, Exception innerException);
new Microsoft.SqlServer.Types.HierarchyIdException : string * Exception -> Microsoft.SqlServer.Types.HierarchyIdException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

A string that contains the error message

innerException
Exception

The exception instance that caused the current exception.

Applies to