Partager via


IVsExtensionRepository.CreateQuery<T>, méthode

Creates a query to populate the list of available extensions.

Espace de noms :  Microsoft.VisualStudio.ExtensionManager
Assembly :  Microsoft.VisualStudio.ExtensionManager (dans Microsoft.VisualStudio.ExtensionManager.dll)

Syntaxe

'Déclaration
Function CreateQuery(Of T As {New, IRepositoryEntry}) As IVsExtensionRepositoryQuery(Of T)
IVsExtensionRepositoryQuery<T> CreateQuery<T>()
where T : new(), IRepositoryEntry
generic<typename T>
where T : gcnew(), IRepositoryEntry 
IVsExtensionRepositoryQuery<T>^ CreateQuery()
abstract CreateQuery : unit -> IVsExtensionRepositoryQuery<'T>  when 'T : new() and IRepositoryEntry
JScript ne prend pas en charge les types ou les méthodes génériques.

Paramètres de type

  • T

Valeur de retour

Type : Microsoft.VisualStudio.ExtensionManager.IVsExtensionRepositoryQuery<T>
An IVsExtensionRepositoryQuery<T> object.

Notes

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

Use this method is to create an IVsExtensionRepositoryQuery<T> object and set properties on an IRepositoryEntry object to be carried by the query.

The query is built by using LINQ syntax, through the IQueryable interface. For more information about LINQ programming, see LINQ General Programming Guide.

IRepositoryEntry implementation should include properties for whatever metadata is required.

For more information, see IVsExtensionRepositoryQuery<T> and IRepositoryEntry.

Sécurité .NET Framework

Voir aussi

Référence

IVsExtensionRepository Interface

CreateQuery, surcharge

Microsoft.VisualStudio.ExtensionManager, espace de noms