Click or drag to resize

IFileSystemItemGetMetadataAsync Method

IT Hit User File System
Gets information about a file or a folder in a user file system, such as name, creation and modification date, etc.

Namespace:  ITHit.FileSystem
Assembly:  ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 9.0.29481.0-Beta
Syntax
Task<IMetadata> GetMetadataAsync(
	IOperationContext operationContext,
	IResultContextBase resultContext,
	CancellationToken cancellationToken = null
)

Parameters

operationContext
Type: ITHit.FileSystemIOperationContext
Provides information about the environment.
resultContext
Type: ITHit.FileSystemIResultContextBase
Used to confirm the operation, report progress and status to the platform.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests.

Return Value

Type: TaskIMetadata
Returns IFileMetadata in case this object is a file or IFolderMetadata in case this object is a folder.
Remarks
If the item not found, this method must return null.
See Also