IVsExtensionRepository.DownloadAsync 方法
Begins an asynchronous download operation.
命名空間: Microsoft.VisualStudio.ExtensionManager
組件: Microsoft.VisualStudio.ExtensionManager (在 Microsoft.VisualStudio.ExtensionManager.dll 中)
語法
'宣告
Function DownloadAsync ( _
extensionDetails As IRepositoryEntry _
) As Guid
Guid DownloadAsync(
IRepositoryEntry extensionDetails
)
Guid DownloadAsync(
IRepositoryEntry^ extensionDetails
)
abstract DownloadAsync :
extensionDetails:IRepositoryEntry -> Guid
function DownloadAsync(
extensionDetails : IRepositoryEntry
) : Guid
參數
extensionDetails
類型:Microsoft.VisualStudio.ExtensionManager.IRepositoryEntryThe IRepositoryEntry that corresponds to the extension to be downloaded.
傳回值
類型:Guid
A GUID that identifies the download operation.
備註
Although this API supports the Extension Manager infrastructure, we recommend that you do not use it because it is subject to change.
On completion, the IInstallableExtension that represents the VSIX package is returned as the Payload property of the DownloadCompletedEventArgs of the DownloadCompleted event.
The GUID that is returned by this method is used by the DownloadAsyncCancel method.
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。