CodeContainerStorageManager.GetAsync(String, CancellationToken) 方法

定义

检索 CodeContainer 其 Full-Path 等于的, fullPath 如果之前已由 Shell 打开了它,则为。 否则,返回 null。

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)

参数

fullPath
String

完整路径

cancellationToken
CancellationToken

取消令牌

返回

Task<CodeContainer>

实现

例外

如果为 null,则引发 fullPath

如果 fullPath 为空,则引发。

适用于