asp.net.ph

OleDbParameterCollection Class

System.Data.OleDb Namespace


Represents the collection of parameters for an OleDbCommand.

OleDbParameterCollection Class Members

Collapse   Properties

Visibility Name Value Type Accessibility
public Count Int32 [ Get ]
public IsFixedSize Boolean [ Get ]
public IsReadOnly Boolean [ Get ]
public IsSynchronized Boolean [ Get ]
public Item ( String parameterName ) OleDbParameter [ Get , Set ]
public Item ( Int32 index ) OleDbParameter [ Get , Set ]
public SyncRoot Object [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public Add ( String parameterName , OleDbType oleDbType , Int32 size ) OleDbParameter
public Add ( String parameterName , OleDbType oleDbType , Int32 size , String sourceColumn ) OleDbParameter
public Add ( Object value ) Int32
public Add ( String parameterName , OleDbType oleDbType ) OleDbParameter
public Add ( OleDbParameter value ) OleDbParameter
public Add ( String parameterName , Object value ) OleDbParameter
public AddRange ( Array values ) Void
public AddRange ( OleDbParameter values ) Void
public AddWithValue ( String parameterName , Object value ) OleDbParameter
public Clear ( ) Void
public Contains ( String value ) Boolean
public Contains ( OleDbParameter value ) Boolean
public Contains ( Object value ) Boolean
public CopyTo ( Array array , Int32 index ) Void
public CopyTo ( OleDbParameter array , Int32 index ) Void
public GetEnumerator ( ) IEnumerator
protected GetParameter ( Int32 index ) DbParameter
protected GetParameter ( String parameterName ) DbParameter
public IndexOf ( Object value ) Int32
public IndexOf ( OleDbParameter value ) Int32
public IndexOf ( String parameterName ) Int32
public Insert ( Int32 index , OleDbParameter value ) Void
public Insert ( Int32 index , Object value ) Void
public Remove ( Object value ) Void
public Remove ( OleDbParameter value ) Void
public RemoveAt ( String parameterName ) Void
public RemoveAt ( Int32 index ) Void
protected SetParameter ( String parameterName , DbParameter value ) Void
protected SetParameter ( Int32 index , DbParameter value ) Void

Remarks

The OleDbParameterCollection represents the set of parameters defined for a given OleDbCommand. This collection is accessed via the OleDbCommand.Parameters property.

Like most data collections in ADO.NET, the OleDbParameterCollection uses standard collection methods such as Add, Clear, and Remove. In addition, the Contains method can be used to check for the existence of a particular parameter in the collection.

The number of parameters in the collection must be equal to the number of parameter placeholders within the command text; otherwise, the OLE DB .NET Data Provider raises an error.

See Also

OleDbParameter   OleDbCommand.Parameters Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph