共用方式為


IVsExtensionRepository.CreateQuery<T> 方法 (Boolean)

命名空間:  Microsoft.VisualStudio.ExtensionManager
組件:  Microsoft.VisualStudio.ExtensionManager (在 Microsoft.VisualStudio.ExtensionManager.dll 中)

語法

'宣告
Function CreateQuery(Of T As {New, IRepositoryEntry}) ( _
    includeTypeInQuery As Boolean _
) As IVsExtensionRepositoryQuery(Of T)
IVsExtensionRepositoryQuery<T> CreateQuery<T>(
    bool includeTypeInQuery
)
where T : new(), IRepositoryEntry
generic<typename T>
where T : gcnew(), IRepositoryEntry 
IVsExtensionRepositoryQuery<T>^ CreateQuery(
    bool includeTypeInQuery
)
abstract CreateQuery : 
        includeTypeInQuery:bool -> IVsExtensionRepositoryQuery<'T>  when 'T : new() and IRepositoryEntry
JScript 不支援泛型型別或方法。

類型參數

  • T

參數

  • includeTypeInQuery
    類型:Boolean

    Determines whether to specify type information for the properties of the IRepositoryEntry object included in the query.

傳回值

類型:Microsoft.VisualStudio.ExtensionManager.IVsExtensionRepositoryQuery<T>
An IVsExtensionRepositoryQuery<T> object.

備註

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 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.

.NET Framework 安全性

請參閱

參考

IVsExtensionRepository 介面

CreateQuery 多載

Microsoft.VisualStudio.ExtensionManager 命名空間