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
SyntaxTask<IMetadata> GetMetadataAsync(
IOperationContext operationContext,
IResultContextBase resultContext,
CancellationToken cancellationToken = null
)
Function GetMetadataAsync (
operationContext As IOperationContext,
resultContext As IResultContextBase,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IMetadata)
Task<IMetadata^>^ GetMetadataAsync(
IOperationContext^ operationContext,
IResultContextBase^ resultContext,
CancellationToken cancellationToken = nullptr
)
abstract GetMetadataAsync :
operationContext : IOperationContext *
resultContext : IResultContextBase *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken null
*)
-> Task<IMetadata>
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.
RemarksIf the item not found, this method must return null.
See Also