共用方式為


IVsDataMappedObjectSelector.SelectMappedObjects<T> 方法 (String, array<Object , Boolean)

擷取指定型別名稱對應資料物件的清單,篩選由指定的限制。

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

語法

'宣告
Function SelectMappedObjects(Of T As IVsDataMappedObject) ( _
    specificTypeName As String, _
    restrictions As Object(), _
    refresh As Boolean _
) As IList(Of T)
IList<T> SelectMappedObjects<T>(
    string specificTypeName,
    Object[] restrictions,
    bool refresh
)
where T : IVsDataMappedObject
generic<typename T>
where T : IVsDataMappedObject
IList<T>^ SelectMappedObjects(
    String^ specificTypeName, 
    array<Object^>^ restrictions, 
    bool refresh
)
abstract SelectMappedObjects : 
        specificTypeName:string * 
        restrictions:Object[] * 
        refresh:bool -> IList<'T>  when 'T : IVsDataMappedObject
JScript 不支援泛型型別或方法。

型別參數

  • T
    參數的型別。

參數

  • specificTypeName
    型別:System.String
    擷取網站導覽資料型別名稱的物件。這是泛型資料型別名稱,在 <MappedType> 項目的資料物件 XML 存放區中找到。
  • restrictions
    型別:array<System.Object[]
    限制物件識別項的清單物件從存放區傳回至符合這些限制的章節。
  • refresh
    型別:System.Boolean
    指出是否 Boolean 值更新必要的限制和屬性清單。

傳回值

型別:System.Collections.Generic.IList<T>
IVsDataMappedObject 清單中指定型別的物件,以符合指定的限制。

例外狀況

例外狀況 條件
ArgumentException

型別名稱不正確。

NotSupportedException

型別名稱不受支援。

ArgumentException

限制無效。

.NET Framework 安全性

請參閱

參考

IVsDataMappedObjectSelector 介面

SelectMappedObjects 多載

Microsoft.VisualStudio.Data.Services 命名空間