检索将数据对象列表一个指定类型的名称,筛选指定的限制。
命名空间: 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。