IVsDataObjectStore.SelectObjects 方法 (String, array<Object , String)

返回一个数据指定类型的对象从对象存储,筛选指定的限制和筛选器。

命名空间:  Microsoft.VisualStudio.Data.Services
程序集:  Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)

语法

声明
Function SelectObjects ( _
    typeName As String, _
    restrictions As Object(), _
    filter As String _
) As IVsDataObjectCollection
IVsDataObjectCollection SelectObjects(
    string typeName,
    Object[] restrictions,
    string filter
)
IVsDataObjectCollection^ SelectObjects(
    String^ typeName, 
    array<Object^>^ restrictions, 
    String^ filter
)
abstract SelectObjects : 
        typeName:string * 
        restrictions:Object[] * 
        filter:string -> IVsDataObjectCollection 
function SelectObjects(
    typeName : String, 
    restrictions : Object[], 
    filter : String
) : IVsDataObjectCollection

参数

  • typeName
    类型:System.String
    检索数据对象的指定类型的数据源特定名称。
  • restrictions
    类型:array<System.Object[]
    筛选的数据对象限制返回。
  • filter
    类型:System.String
    进一步变窄数据对象的筛选器,而没有一对一映射。该映射的类型和数据源特定类型。筛选器的格式与 DataColumn 表达式的格式相同。

返回值

类型:Microsoft.VisualStudio.Data.Services.IVsDataObjectCollection
包含数据对象的 IVsDataObjectCollection

异常

异常 条件
ArgumentNullException

typeName 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。

ArgumentException

所需的限制丢失。

.NET Framework 安全性

请参见

参考

IVsDataObjectStore 接口

SelectObjects 重载

Microsoft.VisualStudio.Data.Services 命名空间