Freigeben über


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)

Syntax

'Declaration
Public Interface IRepositoryEntry
public interface IRepositoryEntry
public interface class IRepositoryEntry
type IRepositoryEntry =  interface end
public interface IRepositoryEntry

The IRepositoryEntry type exposes the following members.

Properties

  Name Description
Public property DownloadUpdateUrl
Public property DownloadUrl The location to download the extension from.
Public property VsixReferences

Top

Remarks

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

See Also

Reference

Microsoft.VisualStudio.ExtensionManager Namespace