OracleParameterCollection Class

 

Represents a collection of parameters relevant to an OracleCommand as well as their respective mappings to columns in a DataSet. This class cannot be inherited.

Namespace:   System.Data.OracleClient
Assembly:  System.Data.OracleClient (in System.Data.OracleClient.dll)

System::Object
  System::MarshalByRefObject
    System.Data.Common::DbParameterCollection
      System.Data.OracleClient::OracleParameterCollection

[ListBindableAttribute(false)]
public ref class OracleParameterCollection sealed : DbParameterCollection

NameDescription
System_CAPS_pubmethodOracleParameterCollection()

Initializes a new instance of the OracleParameterCollection class.

NameDescription
System_CAPS_pubpropertyCount

Returns an Integer containing the number of elements in the OracleParameterCollection. Read-only. (Overrides DbParameterCollection::Count.)

System_CAPS_pubpropertyIsFixedSize

Gets a value that indicates whether the OracleParameterCollection has a fixed size. (Overrides DbParameterCollection::IsFixedSize.)

System_CAPS_pubpropertyIsReadOnly

Gets a value that indicates whether the OracleParameterCollection is read-only. (Overrides DbParameterCollection::IsReadOnly.)

System_CAPS_pubpropertyIsSynchronized

Gets a value that indicates whether the OracleParameterCollection is synchronized.(Overrides DbParameterCollection::IsSynchronized.)

System_CAPS_pubpropertyItem[Int32]

Gets or sets the OracleParameter at the specified index.

System_CAPS_pubpropertyItem[String^]

Gets or sets the OracleParameter with the specified name.

System_CAPS_pubpropertySyncRoot

Gets an object that can be used to synchronize access to the OracleParameterCollection.(Overrides DbParameterCollection::SyncRoot.)

NameDescription
System_CAPS_pubmethodAdd(Object^)

Adds the specified OracleParameter object to the OracleParameterCollection.(Overrides DbParameterCollection::Add(Object^).)

System_CAPS_pubmethodAdd(OracleParameter^)

Adds the specified OracleParameter to the OracleParameterCollection.

System_CAPS_pubmethodAdd(String^, Object^)

Obsolete.Adds an OracleParameter to the OracleParameterCollection given the parameter name and value.

System_CAPS_pubmethodAdd(String^, OracleType)

Adds an OracleParameter to the OracleParameterCollection given the parameter name and data type.

System_CAPS_pubmethodAdd(String^, OracleType, Int32)

Adds an OracleParameter to the OracleParameterCollection given the parameter name, data type, and column length.

System_CAPS_pubmethodAdd(String^, OracleType, Int32, String^)

Adds an OracleParameter to the OracleParameterCollection given the parameter name, data type, column length, and source column name.

System_CAPS_pubmethodAddRange(Array^)

Adds an array of values to the end of the OracleParameterCollection.(Overrides DbParameterCollection::AddRange(Array^).)

System_CAPS_pubmethodAddRange(array<OracleParameter^>^)

Adds an array of OracleParameter values to the end of the OracleParameterCollection.

System_CAPS_pubmethodAddWithValue(String^, Object^)

Adds a value to the end of the OracleParameterCollection.

System_CAPS_pubmethodClear()

Removes all of the OracleParameter objects from the OracleParameterCollection.(Overrides DbParameterCollection::Clear().)

System_CAPS_pubmethodContains(Object^)

Determines whether the specified object is in the OracleParameterCollection.(Overrides DbParameterCollection::Contains(Object^).)

System_CAPS_pubmethodContains(OracleParameter^)

Determines whether the specified OracleParameter is in the OracleParameterCollection.

System_CAPS_pubmethodContains(String^)

Indicates whether an OracleParameter with the specified name is contained in the collection.(Overrides DbParameterCollection::Contains(String^).)

System_CAPS_pubmethodCopyTo(Array^, Int32)

Copies all the elements of the current OracleParameterCollection to the specified one-dimensional Array starting at the specified destination Array index.(Overrides DbParameterCollection::CopyTo(Array^, Int32).)

System_CAPS_pubmethodCopyTo(array<OracleParameter^>^, Int32)

Copies all the elements of the current OracleParameterCollection to the specified OracleParameterCollection starting at the specified destination index.

System_CAPS_pubmethodCreateObjRef(Type^)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through the OracleParameterCollection.(Overrides DbParameterCollection::GetEnumerator().)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIndexOf(Object^)

Gets the location of the specified Object within the collection.(Overrides DbParameterCollection::IndexOf(Object^).)

System_CAPS_pubmethodIndexOf(OracleParameter^)

Gets the location of the specified OracleParameter within the collection.

System_CAPS_pubmethodIndexOf(String^)

Gets the location of the specified OracleParameter with the specified name.(Overrides DbParameterCollection::IndexOf(String^).)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodInsert(Int32, Object^)

Inserts a Object into the OracleParameterCollection at the specified index.(Overrides DbParameterCollection::Insert(Int32, Object^).)

System_CAPS_pubmethodInsert(Int32, OracleParameter^)

Inserts a OracleParameter object into the OracleParameterCollection at the specified index.

System_CAPS_pubmethodRemove(Object^)

Removes the specified OracleParameter object from the collection.(Overrides DbParameterCollection::Remove(Object^).)

System_CAPS_pubmethodRemove(OracleParameter^)

Removes the specified OracleParameter object from the collection.

System_CAPS_pubmethodRemoveAt(Int32)

Removes the OracleParameter object at the specified index from the collection.(Overrides DbParameterCollection::RemoveAt(Int32).)

System_CAPS_pubmethodRemoveAt(String^)

Removes the OracleParameter object with the specified name from the collection.(Overrides DbParameterCollection::RemoveAt(String^).)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList::Item[Int32]

Gets or sets the element at the specified index.(Inherited from DbParameterCollection.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDataParameterCollection::Item[String^]

Gets or sets the parameter at the specified index.(Inherited from DbParameterCollection.)

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

When using named parameters, the number of parameters in the collection must be equal to the number of named parameters within the command text, or the .NET Framework Data Provider for Oracle raises an error.

The .NET Framework Data Provider for Oracle does not support the question mark (?) placeholder for passing parameters to an SQL statement called by an OracleCommand of CommandType.Text. In this case, named parameters must be used. For example:

SELECT * FROM Customers WHERE CustomerID = :pCustomerID

When using named parameters in an SQL statement called by an OracleCommand of CommandType.Text, you must precede the parameter name with a colon (:). However, in a stored procedure, or when referring to a named parameter elsewhere in your code (for example, when adding OracleParameter objects to the Parameters property), do not precede the named parameter with a colon (:). The data provider supplies the colon automatically.

The following example creates multiple instances of OracleParameter through the OracleParameterCollection within the OracleDataAdapter. These parameters are used to select data within the database and then place the data in the DataSet. This example assumes that a DataSet and an OracleDataAdapter have already been created with the appropriate schema, commands, and connection.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: