OdbcParameterCollection 成员

表示与 OdbcCommand 相关的参数的集合以及各个参数到 DataSet 中列的映射。无法继承此类。

下表列出了由 OdbcParameterCollection 类型公开的成员。

公共属性

  名称 说明
Public property Count 已重写。返回一个整数,包含 OdbcParameterCollection 中的元素数。只读。
Public property IsFixedSize 已重写。获取一个值,该值指示 OdbcParameterCollection 是否具有固定大小。只读。
Public property IsReadOnly 已重写。获取一个值,该值指示 OdbcParameterCollection 是否为只读。
Public property IsSynchronized 已重写。获取一个值,该值指示 OdbcParameterCollection 是否是同步的。只读。
Public property Item 已重载。获取或设置具有指定属性的 OdbcParameter
Public property SyncRoot 已重写。获取可用于同步 OdbcParameterCollection 访问的对象。只读。

页首

公共方法

(请参见 受保护的方法 )

  名称 说明
Public method Add 已重载。 已重写。 将 OdbcParameter 添加到 OdbcParameterCollection 中。
Public method AddRange 已重载。 已重写。 向 OdbcParameterCollection 的末尾添加元素。
Public method AddWithValue 将一个值添加到 OdbcParameterCollection 的末尾。
Public method Clear 已重写。 从 OdbcParameterCollection 中移除所有 OdbcParameter 对象。
Public method Contains 已重载。 已重写。 获取一个值,该值指示集合中是否存在 OdbcParameter 对象。
Public method CopyTo 已重载。 已重写。 将当前 OdbcParameterCollection 的所有元素复制到指定的对象。
Public method CreateObjRef  创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。 (从 MarshalByRefObject 继承。)
Public method Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method GetEnumerator 已重写。 返回循环访问 OdbcParameterCollection 的枚举数。
Public method GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method GetLifetimeService  检索控制此实例的生存期策略的当前生存期服务对象。 (从 MarshalByRefObject 继承。)
Public method GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method IndexOf 已重载。 已重写。 获取指定的 OdbcParameter 在集合中的位置。
Public method InitializeLifetimeService  获取控制此实例的生存期策略的生存期服务对象。 (从 MarshalByRefObject 继承。)
Public method Insert 已重载。 已重写。 向 OdbcParameterCollection 中插入一个 OdbcParameter 对象。
Public method Static ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method Remove 已重载。 已重写。 从 OdbcParameterCollection 中移除 OdbcParameter 对象。
Public method RemoveAt 已重载。 已重写。 从 OdbcParameterCollection 中移除指定索引处的 OdbcParameter 对象。
Public method ToString  返回表示当前 ObjectString。 (从 Object 继承。)

页首

受保护的方法

  名称 说明
Protected method Finalize  允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。)
Protected method MemberwiseClone  已重载。 (从 MarshalByRefObject 继承。)

页首

请参见

参考

OdbcParameterCollection 类
System.Data.Odbc 命名空间

其他资源

使用命令
将参数用于 DataAdapter