IFileSystem.GetDisplayInfoAsync 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.
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
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The display information for a Uri.
Remarks
Introduced in version FileSystem.