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 命名空间