IVsDataObjectStore.SelectObjects Method (String, array<Object , Boolean)
Returns a collection of data objects for the specified type from the object store, filtered by the specified restrictions.
Namespace: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'Declaration
Function SelectObjects ( _
typeName As String, _
restrictions As Object(), _
refresh As Boolean _
) As IVsDataObjectCollection
IVsDataObjectCollection SelectObjects(
string typeName,
Object[] restrictions,
bool refresh
)
IVsDataObjectCollection^ SelectObjects(
String^ typeName,
array<Object^>^ restrictions,
bool refresh
)
abstract SelectObjects :
typeName:string *
restrictions:Object[] *
refresh:bool -> IVsDataObjectCollection
function SelectObjects(
typeName : String,
restrictions : Object[],
refresh : boolean
) : IVsDataObjectCollection
Parameters
typeName
Type: System.StringThe data source–specific name of the specified type to retrieve data objects for.
restrictions
Type: array<System.Object[]The restrictions for filtering the data objects returned.
refresh
Type: System.BooleanA Boolean value indicating whether to update the list of required restrictions and properties for the specified type.
Return Value
Type: Microsoft.VisualStudio.Data.Services.IVsDataObjectCollection
An IVsDataObjectCollection containing the data objects.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The typeName parameter is nulla null reference (Nothing in Visual Basic). |
ArgumentException | The required restriction is missing. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.