Compartir a través de


HierarchyIdException Constructor (String, Exception)

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

Espacio de nombres:  Microsoft.SqlServer.Types
Ensamblado:  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Sintaxis

'Declaración
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
'Uso
Dim message As String 
Dim innerException As Exception 

Dim instance As New HierarchyIdException(message, _
    innerException)
public HierarchyIdException(
    string message,
    Exception innerException
)
public:
HierarchyIdException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> HierarchyIdException
public function HierarchyIdException(
    message : String, 
    innerException : Exception
)

Parámetros

  • message
    Tipo: System.String
    A string that contains the error message
  • innerException
    Tipo: System.Exception
    The exception instance that caused the current exception.

Comentarios

The constructor is called by another exception object to transmit exception data upstream.

Vea también

Referencia

HierarchyIdException Clase

Sobrecarga de HierarchyIdException

Espacio de nombres Microsoft.SqlServer.Types