Freigeben über


HierarchyIdException-Klasse

The exception that is thrown for invalid SqlHierarchyId values.

Vererbungshierarchie

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

Der HierarchyIdException-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode HierarchyIdException() Initializes a new instance of the HierarchyIdException class.
Öffentliche Methode HierarchyIdException(String) Initializes a new instance of the HierarchyIdException class with a custom error message.
Geschützte Methode HierarchyIdException(SerializationInfo, StreamingContext) Initializes a new instance of the HierarchyIdException class with serialized data.
Öffentliche Methode HierarchyIdException(String, Exception) Initializes a new instance of the HierarchyIdExceptionclass with a custom error message and the triggering exception object.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Data (Geerbt von Exception.)
Öffentliche Eigenschaft HelpLink (Geerbt von Exception.)
Öffentliche Eigenschaft HResult (Geerbt von Exception.)
Öffentliche Eigenschaft InnerException (Geerbt von Exception.)
Öffentliche Eigenschaft Message (Geerbt von Exception.)
Öffentliche Eigenschaft Source (Geerbt von Exception.)
Öffentliche Eigenschaft StackTrace (Geerbt von Exception.)
Öffentliche Eigenschaft TargetSite (Geerbt von Exception.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetBaseException (Geerbt von Exception.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetObjectData Sicherheitskritisch (Geerbt von Exception.)
Öffentliche Methode GetType (Geerbt von Exception.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Exception.)

Zum Anfang

Ereignisse

  Name Beschreibung
Geschütztes Ereignis SerializeObjectState (Geerbt von Exception.)

Zum Anfang

Hinweise

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 Arbeiten mit hierarchyid-Daten.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Types-Namespace