IVsDataObjectStore.SelectObjects Method (String, [], String, String)

Returns a collection of data objects for the specified type from the object store, filtered by the specified restrictions and filter, and sorted according to the specified ordering.

Namespace:  Microsoft.VisualStudio.Data.Services
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'宣言
Function SelectObjects ( _
    typeName As String, _
    restrictions As Object(), _
    filter As String, _
    ordering As String _
) As IVsDataObjectCollection
'使用
Dim instance As IVsDataObjectStore
Dim typeName As String
Dim restrictions As Object()
Dim filter As String
Dim ordering As String
Dim returnValue As IVsDataObjectCollection

returnValue = instance.SelectObjects(typeName, _
    restrictions, filter, ordering)
IVsDataObjectCollection SelectObjects(
    string typeName,
    Object[] restrictions,
    string filter,
    string ordering
)
IVsDataObjectCollection^ SelectObjects(
    String^ typeName, 
    array<Object^>^ restrictions, 
    String^ filter, 
    String^ ordering
)
function SelectObjects(
    typeName : String, 
    restrictions : Object[], 
    filter : String, 
    ordering : String
) : IVsDataObjectCollection

Parameters

  • typeName
    Type: System.String

    The data source–specific name of the specified type to retrieve data objects for.

  • restrictions
    Type: []

    The restrictions for filtering the data objects returned.

  • filter
    Type: System.String

    A filter to further narrow down the selection of data objects when there is no one-to-one mapping between the mapped type and the data source–specific type. The format of the filter is identical to the format of the DataColumn expression.

  • ordering
    Type: System.String

    A string of comma-delimited data objects representing the sort ordering of the returned data objects.

Return Value

Type: Microsoft.VisualStudio.Data.Services.IVsDataObjectCollection

An IVsDataObjectCollection containing the data objects.

Exceptions

Exception Condition
ArgumentNullException

The typeName parameter is a null reference (Nothing in Visual Basic).

ArgumentException

The required restriction is missing.

Permissions

See Also

Reference

IVsDataObjectStore Interface

IVsDataObjectStore Members

SelectObjects Overload

Microsoft.VisualStudio.Data.Services Namespace