Metoda SqlHierarchyId.GetRoot
Pobiera wartość reprezentująca głównego SqlHierarchyId węzeł hierarchii.
Przestrzeń nazw: Microsoft.SqlServer.Types
Zestaw: Microsoft.SqlServer.Types (w Microsoft.SqlServer.Types.dll)
Składnia
'Deklaracja
<SqlMethodAttribute(DataAccess := DataAccessKind.None, SystemDataAccess := SystemDataAccessKind.None, _
InvokeIfReceiverIsNull := False, OnNullCall := False, _
IsDeterministic := True, IsPrecise := True, IsMutator := False)> _
Public Shared Function GetRoot As SqlHierarchyId
'Użycie
Dim returnValue As SqlHierarchyId
returnValue = SqlHierarchyId.GetRoot()
[SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None,
InvokeIfReceiverIsNull = false, OnNullCall = false,
IsDeterministic = true, IsPrecise = true, IsMutator = false)]
public static SqlHierarchyId GetRoot()
[SqlMethodAttribute(DataAccess = DataAccessKind::None, SystemDataAccess = SystemDataAccessKind::None,
InvokeIfReceiverIsNull = false, OnNullCall = false,
IsDeterministic = true, IsPrecise = true, IsMutator = false)]
public:
static SqlHierarchyId GetRoot()
[<SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None,
InvokeIfReceiverIsNull = false, OnNullCall = false,
IsDeterministic = true, IsPrecise = true, IsMutator = false)>]
static member GetRoot : unit -> SqlHierarchyId
public static function GetRoot() : SqlHierarchyId
Wartość zwracana
Typ: Microsoft.SqlServer.Types.SqlHierarchyId
A SqlHierarchyId reprezentująca węzeł główny drzewa hierarchicznego.
Wartość główny jest zazwyczaj 0 x.
Uwagi
To element członkowski jest statyczne.
Przykłady
SELECT HierarchyID::GetRoot() ;