共用方式為


HierarchyId 屬性

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

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Shared ReadOnly Property HierarchyId As DataType
    Get
'用途
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

屬性值

型別: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)

PowerShell

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