AdoDotNetConnectionSupport.DeriveSchema Method

Definition

Derives the schema returned from a specified command, indicating the layout of items and blocks in a given data reader.

public:
 virtual Microsoft::VisualStudio::Data::DataReader ^ DeriveSchema(System::String ^ command, int commandType, cli::array <Microsoft::VisualStudio::Data::DataParameter ^> ^ parameters, int commandTimeout);
public virtual Microsoft.VisualStudio.Data.DataReader DeriveSchema (string command, int commandType, Microsoft.VisualStudio.Data.DataParameter[] parameters, int commandTimeout);
abstract member DeriveSchema : string * int * Microsoft.VisualStudio.Data.DataParameter[] * int -> Microsoft.VisualStudio.Data.DataReader
override this.DeriveSchema : string * int * Microsoft.VisualStudio.Data.DataParameter[] * int -> Microsoft.VisualStudio.Data.DataReader
Public Overridable Function DeriveSchema (command As String, commandType As Integer, parameters As DataParameter(), commandTimeout As Integer) As DataReader

Parameters

command
String

Data-source-specific command for which to derive the schema

commandType
Int32

Type of the indicated command, specifying how to interpret the contents of the command parameter.

parameters
DataParameter[]

Array of AdoDotNetParameter objects for the specified command type.

commandTimeout
Int32

Length of time, in seconds, to block the client before canceling the schema derivation and returning to the caller. A value of zero indicates infinite timeout; value of -1 indicates a provider default.

Returns

Returns a DataReader object instance representing the command schema.

Applies to