Condividi tramite


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

Restituisce le proprietà dell'oggetto radice, come le proprietà di connessione non sensibili e alcune proprietà DbConnection, tramite un lettore dati.

Spazio dei nomi:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Sintassi

'Dichiarazione
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

Parametri

  • typeName
    Tipo: String

    Il nome del tipo mappato.

  • restrictions
    Tipo: array<Object[]

    Una matrice contenente le restrizioni utilizzate per filtrare selezione dell'oggetto.

  • properties
    Tipo: array<String[]

    Una matrice contenente le proprietà. La versione corrente di DDEX non supporta le proprietà.

  • parameters
    Tipo: array<Object[]

    Una matrice contenente i parametri.

Valore restituito

Tipo: Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataReader
Un oggetto IVsDataReader che rappresenta un lettore dati per le proprietà restituite.

Eccezioni

Eccezione Condizione
ArgumentNullException

Il parametro typeName è nullriferimento null (Nothing in Visual Basic).

NotSupportedException

La lunghezza del parametro typeName non è maggiore di zero.

ArgumentException

Il parametro direstrictions è null, o la lunghezza non è maggiore di zero.

InvalidOperationException

Il sito è null.

NotImplementedException

Il provider non può essere ottenuto.

Note

I parametri non vengono utilizzati in questo metodo in quanto consente di selezionare l'oggetto radice.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

AdoDotNetRootObjectSelector Classe

Overload SelectObjects

Spazio dei nomi Microsoft.VisualStudio.Data.Framework.AdoDotNet