// optional interface, unsafe cast private UnsafeNativeMethods.ICommandWithParameters ICommandWithParameters() { Debug.Assert(null != _icommandText, "ICommandWithParameters: null ICommandText"); UnsafeNativeMethods.ICommandWithParameters value = (_icommandText as UnsafeNativeMethods.ICommandWithParameters); if (null == value) { throw ODB.NoProviderSupportForParameters(_connection.Provider, (Exception)null); } return(value); }
private System.Data.Common.UnsafeNativeMethods.ICommandWithParameters ICommandWithParameters() { Bid.Trace("<oledb.IUnknown.QueryInterface|API|OLEDB|command> %d#, ICommandWithParameters\n", this.ObjectID); System.Data.Common.UnsafeNativeMethods.ICommandWithParameters parameters = this._icommandText as System.Data.Common.UnsafeNativeMethods.ICommandWithParameters; if (parameters == null) { throw ODB.NoProviderSupportForParameters(this._connection.Provider, null); } return(parameters); }