返回一个数据根据指定的排序指定类型的对象从对象存储,筛选指定的限制和筛选和排序的。
命名空间: Microsoft.VisualStudio.Data.Services
程序集: Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)
语法
声明
Function SelectObjects ( _
typeName As String, _
restrictions As Object(), _
filter As String, _
ordering As String _
) As IVsDataObjectCollection
IVsDataObjectCollection SelectObjects(
string typeName,
Object[] restrictions,
string filter,
string ordering
)
IVsDataObjectCollection^ SelectObjects(
String^ typeName,
array<Object^>^ restrictions,
String^ filter,
String^ ordering
)
abstract SelectObjects :
typeName:string *
restrictions:Object[] *
filter:string *
ordering:string -> IVsDataObjectCollection
function SelectObjects(
typeName : String,
restrictions : Object[],
filter : String,
ordering : String
) : IVsDataObjectCollection
参数
- typeName
类型:System.String
检索数据对象的指定类型的数据源特定名称。
- restrictions
类型:array<System.Object[]
筛选的数据对象限制返回。
- filter
类型:System.String
进一步变窄数据对象的筛选器,而没有一对一映射。该映射的类型和数据源特定类型。筛选器的格式与 DataColumn 表达式的格式相同。
- ordering
类型:System.String
表示排序顺序返回的数据对象的逗号分隔的数据对象字符串。
返回值
类型:Microsoft.VisualStudio.Data.Services.IVsDataObjectCollection
包含数据对象的 IVsDataObjectCollection。
异常
异常 | 条件 |
---|---|
ArgumentNullException | typeName 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
ArgumentException | 所需的限制丢失。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。