共用方式為


IFileSystemProvider.GetInfoAsync(Uri, CancellationToken) Method

Definition

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.

Applies to