IRepositoryEntry 接口

IVsExtensionRepository 接口可以将下载扩展的接口。

命名空间:  Microsoft.VisualStudio.ExtensionManager
程序集:  Microsoft.VisualStudio.ExtensionManager(在 Microsoft.VisualStudio.ExtensionManager.dll 中)

语法

声明
Public Interface IRepositoryEntry
public interface IRepositoryEntry
public interface class IRepositoryEntry
type IRepositoryEntry =  interface end
public interface IRepositoryEntry

IRepositoryEntry 类型公开以下成员。

属性

  名称 说明
公共属性 DownloadUpdateUrl
公共属性 DownloadUrl 下载扩展的位置。
公共属性 VsixReferences

页首

备注

尽管此 API 支持 扩展管理器 基础结构,不建议使用它,因为它可能会发生更改。

IVsExtensionRepositoryQuery<T> 发送到扩展储存库服务时,其筛选器参数设置为 IRepositoryEntry的属性。 存储库服务然后查询承载扩展,通常 Visual Studio 库的 web 服务,并使回一系列键/值对与所提供参数的每个扩展对。 存储库服务将键/值对返回可用属性和从而创建由 web 服务返回的每个扩展的 IRepositoryEntry 实例。 在完成, ExecuteCompleted 事件激发时和新 IRepositoryEntry 对象的集合的形式返回 ExecuteCompletedEventArgs 对象的 Results 属性。

尽管唯一的必需属性是 DownloadUrl, IRepositoryEntry 实现应包括扩展相关下载,例如,标题、日期修改的和有些类信息的那些属性。 但是,扩展储存库服务只能填充对应于键/值对 web 服务提供与扩展库提供程序的数据。

下表列出了 Visual Studio 库 web 服务识别的属性及其类型

属性名

类型

Author

string

CategoryID

int

说明

string

DownloadCount

int

DownloadUrl

string

图标

string

上次更新

DateTime

LCID

int

MoreInfoURL

string

名称

string

PreviewImage

string

对估计值

Double

RatingsCount

int

ReferralUrl

string

ReportAbuseUrl

string

SizeInBytes

long

VsixID

string

VsixReferences

string

VsixVersion

string

请参阅

参考

Microsoft.VisualStudio.ExtensionManager 命名空间