DbProviderServices.CreateCommandDefinition Method     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a command definition object from the specified command definition.
Overloads
| CreateCommandDefinition(DbCommandTree) | Creates command definition from command tree. | 
| CreateCommandDefinition(DbCommand) | Creates a command definition that uses a specified command. | 
| CreateCommandDefinition(DbProviderManifest, DbCommandTree) | Creates command definition from specified manifest and command tree. | 
CreateCommandDefinition(DbCommandTree)
Creates command definition from command tree.
public:
 System::Data::Common::DbCommandDefinition ^ CreateCommandDefinition(System::Data::Common::CommandTrees::DbCommandTree ^ commandTree);public System.Data.Common.DbCommandDefinition CreateCommandDefinition(System.Data.Common.CommandTrees.DbCommandTree commandTree);member this.CreateCommandDefinition : System.Data.Common.CommandTrees.DbCommandTree -> System.Data.Common.DbCommandDefinitionPublic Function CreateCommandDefinition (commandTree As DbCommandTree) As DbCommandDefinitionParameters
- commandTree
- DbCommandTree
The command tree.
Returns
The created command definition.
Applies to
CreateCommandDefinition(DbCommand)
Creates a command definition that uses a specified command.
public:
 virtual System::Data::Common::DbCommandDefinition ^ CreateCommandDefinition(System::Data::Common::DbCommand ^ prototype);public virtual System.Data.Common.DbCommandDefinition CreateCommandDefinition(System.Data.Common.DbCommand prototype);abstract member CreateCommandDefinition : System.Data.Common.DbCommand -> System.Data.Common.DbCommandDefinition
override this.CreateCommandDefinition : System.Data.Common.DbCommand -> System.Data.Common.DbCommandDefinitionPublic Overridable Function CreateCommandDefinition (prototype As DbCommand) As DbCommandDefinitionParameters
- prototype
- DbCommand
The command used to create command definition.
Returns
The created command definition that uses a specified command.
Applies to
CreateCommandDefinition(DbProviderManifest, DbCommandTree)
Creates command definition from specified manifest and command tree.
public:
 System::Data::Common::DbCommandDefinition ^ CreateCommandDefinition(System::Data::Common::DbProviderManifest ^ providerManifest, System::Data::Common::CommandTrees::DbCommandTree ^ commandTree);public System.Data.Common.DbCommandDefinition CreateCommandDefinition(System.Data.Common.DbProviderManifest providerManifest, System.Data.Common.CommandTrees.DbCommandTree commandTree);member this.CreateCommandDefinition : System.Data.Common.DbProviderManifest * System.Data.Common.CommandTrees.DbCommandTree -> System.Data.Common.DbCommandDefinitionPublic Function CreateCommandDefinition (providerManifest As DbProviderManifest, commandTree As DbCommandTree) As DbCommandDefinitionParameters
- providerManifest
- DbProviderManifest
The manifest.
- commandTree
- DbCommandTree
The command tree.
Returns
The created command definition.