IRemoteFileMetadataManager.GetFileMetadataAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets metadata for a specific file.
public:
System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::String ^> ^> ^ GetFileMetadataAsync(System::String ^ relativeFilePath, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string,string>> GetFileMetadataAsync (string relativeFilePath, System.Threading.CancellationToken cancellationToken);
abstract member GetFileMetadataAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string, string>>
Public Function GetFileMetadataAsync (relativeFilePath As String, cancellationToken As CancellationToken) As Task(Of IReadOnlyDictionary(Of String, String))
Parameters
- relativeFilePath
- String
The file for which metadata will be retrieved, relative to the workspace root.
- cancellationToken
- CancellationToken
Token of cancelling.
Returns
A Task whose result is a (possibly empty) collection of file metadata.
Remarks
Implementations of this method should be free-threaded, i.e. callers of this method should be able to call it from any thread.