共用方式為


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

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

命名空間:  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() _
) As IList(Of T)
IList<T> SelectMappedObjects<T>(
    string specificTypeName,
    Object[] restrictions
)
where T : IVsDataMappedObject
generic<typename T>
where T : IVsDataMappedObject 
IList<T>^ SelectMappedObjects(
    String^ specificTypeName, 
    array<Object^>^ restrictions
)
abstract SelectMappedObjects : 
        specificTypeName:string * 
        restrictions:Object[] -> IList<'T>  when 'T : IVsDataMappedObject
JScript 不支援泛型型別或方法。

類型參數

  • T
    參數的型別。

參數

  • specificTypeName
    類型:String

    擷取網站導覽資料型別名稱的物件。 這是泛型資料型別名稱,在 <MappedType> 項目的資料物件 XML 存放區中找到。

  • restrictions
    類型:array<Object[]

    限制物件識別項的清單物件從存放區傳回至符合這些限制的章節。

傳回值

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

例外狀況

例外狀況 條件
ArgumentException

型別名稱不正確。

NotSupportedException

型別名稱不受支援。

ArgumentException

限制無效。

.NET Framework 安全性

請參閱

參考

IVsDataMappedObjectSelector 介面

SelectMappedObjects 多載

Microsoft.VisualStudio.Data.Services 命名空間