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.DbCommandDefinition
	Public Function CreateCommandDefinition (commandTree As DbCommandTree) As DbCommandDefinition
	Parameters
- 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.DbCommandDefinition
	Public Overridable Function CreateCommandDefinition (prototype As DbCommand) As DbCommandDefinition
	Parameters
- 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.DbCommandDefinition
	Public Function CreateCommandDefinition (providerManifest As DbProviderManifest, commandTree As DbCommandTree) As DbCommandDefinition
	Parameters
- providerManifest
 - DbProviderManifest
 
The manifest.
- commandTree
 - DbCommandTree
 
The command tree.
Returns
The created command definition.