CodeContainerStorageManager.GetAsync(String, 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.
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.