Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IRepositoryEntry Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Interface for extensions to be downloaded from an IVsExtensionRepository interface.

Namespace:  Microsoft.VisualStudio.ExtensionManager
Assembly:  Microsoft.VisualStudio.ExtensionManager (in Microsoft.VisualStudio.ExtensionManager.dll)
public interface IRepositoryEntry

The IRepositoryEntry type exposes the following members.

  NameDescription
Public propertyDownloadUpdateUrl
Public propertyDownloadUrlThe location to download the extension from.
Public propertyVsixReferences
Top

Although this API supports the Extension Manager infrastructure, we recommend that you do not use it because it is subject to change.

When a IVsExtensionRepositoryQuery<T> is sent to the extension repository service, its filter parameters are set as properties on an IRepositoryEntry. The repository service then queries the web service that hosts the extensions, typically Visual Studio Gallery, and gets back a series of key/value pairs for every extension that matches the supplied parameters. The repository service translates the key/value pairs back into the available properties and thereby creates a IRepositoryEntry instance for each extension that is returned by the web service. On completion, the ExecuteCompleted event fires, and the collection of new IRepositoryEntry objects are returned as the Results property of the ExecuteCompletedEventArgs object.

Although the only required property is DownloadUrl, the IRepositoryEntry implementation should include those properties that are relevant to an extension to be downloaded, for example, title, date modified, and some category information. However, the extension repository service can only populate data that corresponds to key/value pairs that are offered by the web service that is associated with the extension gallery provider.

The following table lists properties that are recognized by the Visual Studio Gallery web service, and their types

Property Name

Type

Author

string

CategoryID

int

Description

string

DownloadCount

int

DownloadUrl

string

Icon

string

LastModified

DateTime

Lcid

int

MoreInfoURL

string

Name

string

PreviewImage

string

Rating

Double

RatingsCount

int

ReferralUrl

string

ReportAbuseUrl

string

SizeInBytes

long

VsixID

string

VsixReferences

string

VsixVersion

string

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.