Partager via


Propriété HierarchyId

The HierarchyId property is used to identify a position in a hierarchy.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Shared ReadOnly Property HierarchyId As DataType
    Get
'Utilisation
Dim value As DataType

value = DataType.HierarchyId
public static DataType HierarchyId { get; }
public:
static property DataType^ HierarchyId {
    DataType^ get ();
}
static member HierarchyId : DataType
static function get HierarchyId () : DataType

Valeur de propriété

Type : Microsoft.SqlServer.Management.Smo. . :: . .DataType
A DataType object value that specifies a HierarchyId definition in the data type.

Notes

Use HierarchyId to query and perform operations on hierarchical data.

Exemples

Visual Basic

Dim dt As DataType
dt = New DataType(SqlDataType.HierarchyId)

PowerShell

$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::HierarchyId)