共用方式為


IVsDataMappedObjectSelector.SelectMappedObjects<T> 方法 (String)

擷取指定型別的對應資料物件的清單。

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

語法

'宣告
Function SelectMappedObjects(Of T As IVsDataMappedObject) ( _
    specificTypeName As String _
) As IList(Of T)
IList<T> SelectMappedObjects<T>(
    string specificTypeName
)
where T : IVsDataMappedObject
generic<typename T>
where T : IVsDataMappedObject
IList<T>^ SelectMappedObjects(
    String^ specificTypeName
)
abstract SelectMappedObjects : 
        specificTypeName:string -> IList<'T>  when 'T : IVsDataMappedObject
JScript 不支援泛型型別或方法。

型別參數

  • T
    參數的型別。

參數

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

傳回值

型別:System.Collections.Generic.IList<T>
IVsDataMappedObject 清單物件表示指定之型別的對應的物件。

例外狀況

例外狀況 條件
ArgumentException

型別名稱不正確。

NotSupportedException

型別名稱不受支援。

.NET Framework 安全性

請參閱

參考

IVsDataMappedObjectSelector 介面

SelectMappedObjects 多載

Microsoft.VisualStudio.Data.Services 命名空間