Partager via


CodeContainerStorageManager.GetAsync(String, CancellationToken) Method

Definition

Retrieves the CodeContainer whose Full-Path is equal to fullPath if it has been previously opened by the Shell. Returns null otherwise.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer> GetAsync (string fullPath, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.CodeContainerManagement.CodeContainer>
Public Function GetAsync (fullPath As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CodeContainer)

Parameters

fullPath
String

Full path

cancellationToken
CancellationToken

Cancellation token

Returns

Implements

Exceptions

Thrown if fullPath is null.

Thrown if fullPath is empty.

Applies to