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
- Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Для получения дополнительной информации см. Использование библиотек из не вполне надежного кода.