DataType.HierarchyId Property


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

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public static DataType HierarchyId { get; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.DataType

A DataType object value that specifies a HierarchyId definition in the data type.

Use HierarchyId to query and perform operations on hierarchical data.

Visual Basic

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


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