IFileSystemProvider.GetInfoAsync(Uri, CancellationToken) 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 about a file or directory.
public:
System::Threading::Tasks::Task<Microsoft::VisualStudio::RpcContracts::FileSystem::DirectoryEntryInfo ^> ^ GetInfoAsync(Uri ^ uri, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.FileSystem.DirectoryEntryInfo?> GetInfoAsync (Uri uri, System.Threading.CancellationToken cancellationToken);
abstract member GetInfoAsync : Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.FileSystem.DirectoryEntryInfo>
Public Function GetInfoAsync (uri As Uri, cancellationToken As CancellationToken) As Task(Of DirectoryEntryInfo)
Parameters
- uri
- Uri
The file or directory whose info is requested.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Information about the file or directory, or null if the file or directory does not exist.
Exceptions
uri
is null.