Condividi tramite


IFileSystem.GetDisplayInfoAsync Method

Definition

Overloads

GetDisplayInfoAsync(String, CancellationToken)

Gets display information for a local file.

GetDisplayInfoAsync(Uri, CancellationToken)

Gets display information for a Uri.

GetDisplayInfoAsync(String, CancellationToken)

Gets display information for a local file.

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::RpcContracts::FileSystem::UriDisplayInfo ^> ^ GetDisplayInfoAsync(System::String ^ fileName, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.FileSystem.UriDisplayInfo> GetDisplayInfoAsync (string fileName, System.Threading.CancellationToken cancellationToken);
abstract member GetDisplayInfoAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.FileSystem.UriDisplayInfo>
Public Function GetDisplayInfoAsync (fileName As String, cancellationToken As CancellationToken) As Task(Of UriDisplayInfo)

Parameters

fileName
String

The fully qualified file name.

cancellationToken
CancellationToken

The cancellation token.

Returns

The display information for fileName.

Remarks

Introduced in version FileSystem.

Applies to

GetDisplayInfoAsync(Uri, CancellationToken)

Gets display information for a Uri.

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::RpcContracts::FileSystem::UriDisplayInfo ^> ^ GetDisplayInfoAsync(Uri ^ uri, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.FileSystem.UriDisplayInfo> GetDisplayInfoAsync (Uri uri, System.Threading.CancellationToken cancellationToken);
abstract member GetDisplayInfoAsync : Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.FileSystem.UriDisplayInfo>
Public Function GetDisplayInfoAsync (uri As Uri, cancellationToken As CancellationToken) As Task(Of UriDisplayInfo)

Parameters

uri
Uri

The Uri whose display information is returned.

cancellationToken
CancellationToken

The cancellation token.

Returns

The display information for a Uri.

Remarks

Introduced in version FileSystem.

Applies to