'Declaration Public Function InitializeParameters( _ ByVal currentCommand As IDbCommand, _ ByVal factoryMethod As OperationContext.ParameterFactoryMethod, _ ByVal commandSequenceNumber As Integer _ ) As IDataParameterCollection
public IDataParameterCollection InitializeParameters( IDbCommand currentCommand, OperationContext.ParameterFactoryMethod factoryMethod, int commandSequenceNumber )
Exception | Description |
---|---|
System.ArgumentNullException | Thrown when the currentCommand supplied is a null reference (Nothing in Visual Basic .NET). A non-null IDbCommand implementation is required to create a data parameters collection (of the appropriate implementation type) and attach it to the currentCommand. |
Calling this method will re-set the IDataParameterCollection on currentCommand to empty before adding the expected parameter set for this stage in processing.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2