Compartir a través de


AdoDotNetRootObjectSelector.SelectObjects Method (String, array<Object[], array<String[], array<Object )

Returns root object properties, such as the non-sensitive connection properties and some DbConnection properties, through a data reader.

Namespace:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Protected Overrides Function SelectObjects ( _
    typeName As String, _
    restrictions As Object(), _
    properties As String(), _
    parameters As Object() _
) As IVsDataReader
protected override IVsDataReader SelectObjects(
    string typeName,
    Object[] restrictions,
    string[] properties,
    Object[] parameters
)
protected:
virtual IVsDataReader^ SelectObjects(
    String^ typeName, 
    array<Object^>^ restrictions, 
    array<String^>^ properties, 
    array<Object^>^ parameters
) override
abstract SelectObjects : 
        typeName:string * 
        restrictions:Object[] * 
        properties:string[] * 
        parameters:Object[] -> IVsDataReader  
override SelectObjects : 
        typeName:string * 
        restrictions:Object[] * 
        properties:string[] * 
        parameters:Object[] -> IVsDataReader
protected override function SelectObjects(
    typeName : String, 
    restrictions : Object[], 
    properties : String[], 
    parameters : Object[]
) : IVsDataReader

Parameters

  • restrictions
    Type: array<System.Object[]

    An array containing the restrictions used to filter object selection.

  • properties
    Type: array<System.String[]

    An array containing the properties. The current version of DDEX does not support properties.

  • parameters
    Type: array<System.Object[]

    An array containing the parameters.

Return Value

Type: Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
An IVsDataReader object representing a data reader for the returned properties.

Exceptions

Exception Condition
ArgumentNullException

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

NotSupportedException

The length of the typeName parameter is not greater than zero.

ArgumentException

The restrictions parameter is null, or its length is not greater than zero.

InvalidOperationException

The site is null.

NotImplementedException

The provider could not be obtained.

Remarks

The parameters are not used in this method because it selects the root object.

.NET Framework Security

See Also

Reference

AdoDotNetRootObjectSelector Class

SelectObjects Overload

Microsoft.VisualStudio.Data.Framework.AdoDotNet Namespace