DataType.HierarchyId DataType.HierarchyId DataType.HierarchyId Property

Definition

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

public:
 static property Microsoft::SqlServer::Management::Smo::DataType ^ HierarchyId { Microsoft::SqlServer::Management::Smo::DataType ^ get(); };
public static Microsoft.SqlServer.Management.Smo.DataType HierarchyId { get; }
Public Shared ReadOnly Property HierarchyId As DataType
Property Value

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

Examples

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)  

Remarks

Use HierarchyId to query and perform operations on hierarchical data.

Applies to