Class SoParameterCollection
Inheritance
Implements
Namespace: SuperOffice.Data
Assembly: SoDataBase.dll
Syntax
public class SoParameterCollection : ArrayList, IDataParameterCollection, ICollection, IEnumerable, IList
Constructors
SoParameterCollection()
Declaration
public SoParameterCollection()
Properties
Item[String]
Gets or sets the System.Object at the specified index.
Declaration
public object this[string index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | index |
Property Value
Type | Description |
---|---|
System.Object |
Methods
Add(SoParameter)
Adds the specified value.
Declaration
public int Add(SoParameter value)
Parameters
Type | Name | Description |
---|---|---|
SoParameter | value | The value. |
Returns
Type | Description |
---|---|
System.Int32 | The System.Collections.ArrayList index at which the value has been added. |
Add(Object)
Adds an object to the end of the System.Collections.ArrayList.
Declaration
public override int Add(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The System.Object to be added to the end of the System.Collections.ArrayList. The value can be null. |
Returns
Type | Description |
---|---|
System.Int32 | The System.Collections.ArrayList index at which the value has been added. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The System.Collections.ArrayList is read-only.-or- The System.Collections.ArrayList has a fixed size. |
Add(String, DbType)
Adds the specified parameter name.
Declaration
public int Add(string parameterName, DbType type)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | The name of the parameter to map. |
System.Data.DbType | type |
Returns
Type | Description |
---|---|
System.Int32 | The System.Collections.ArrayList index at which the value has been added. |
Add(String, DbType, String)
Adds the specified parameter name.
Declaration
public int Add(string parameterName, DbType dbType, string sourceColumn)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | The name of the parameter to map. |
System.Data.DbType | dbType | Type of the db. |
System.String | sourceColumn | The name of the source column |
Returns
Type | Description |
---|---|
System.Int32 | The System.Collections.ArrayList index at which the value has been added. |
Add(String, Object)
Adds the specified parameter name.
Declaration
public int Add(string parameterName, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | The name of the parameter to map. |
System.Object | value | The value. |
Returns
Type | Description |
---|---|
System.Int32 | The System.Collections.ArrayList index at which the value has been added. |
Contains(String)
Gets a value indicating whether a parameter in the collection has the specified source table name.
Declaration
public bool Contains(string parameterName)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | The name of the parameter. |
Returns
Type | Description |
---|---|
System.Boolean | true if the collection contains the parameter; otherwise, false. |
IndexOf(String)
Gets the location of the System.Data.IDataParameter within the collection.
Declaration
public int IndexOf(string parameterName)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | The name of the parameter. |
Returns
Type | Description |
---|---|
System.Int32 | The zero-based location of the System.Data.IDataParameter within the collection. |
RemoveAt(String)
Removes the System.Data.IDataParameter from the collection.
Declaration
public void RemoveAt(string parameterName)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | The name of the parameter. |