Click or drag to resize

ContextAsyncTHierarchyItemGetHierarchyItemAsync Method

IT Hit WebDAV Classes Reference
Implementation of this abstract method is used by the engine to find hierarchy item objects by path.

Namespace:  ITHit.Server
Assembly:  ITHit.Server (in ITHit.Server.dll) Version: 13.3.13068
Syntax
public abstract Task<THierarchyItem> GetHierarchyItemAsync(
	string path
)

Parameters

path
Type: SystemString
Path of the hierarchy item object (file, folder, version, etc.). It is always the full path from the root of the repository.

Return Value

Type: TaskTHierarchyItem
Hierarchy item object referenced by the specified path or null if hierarchy item not found.
Remarks

When you inherit from the context class, you must override this abstract method. For Class 1 and Class 2 server in this method implementation you will search for file or folder in your storage by path provided and return it to engine. For G Suite server you will search only for files. For DeltaV server in addition to folder or file item you will return version and history items.

See Also