DBindingCollection DBindingCollection DBindingCollection DBindingCollection Interface

定义

警告

此 API 现已过时。

重要

此 API 不符合 CLS。

符合 CLS 的替代方案
System.Windows.Forms.BindingsCollection

提供一个接口,以在从 Visual Basic 6.0 升级的应用程序中替换基于 COM 的数据绑定。Provides an interface to replace COM-based data binding in an application upgraded from Visual Basic 6.0.

public interface class DBindingCollection : System::Collections::IEnumerable
[System.CLSCompliant(false)]
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public interface DBindingCollection : System.Collections.IEnumerable
type DBindingCollection = interface
    interface IEnumerable
Public Interface DBindingCollection
Implements IEnumerable
派生
属性
实现

注解

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic 2008。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

属性

Count Count Count Count

获取 DBindingCollection 中绑定的总数。Gets the total number of bindings in the DBindingCollection.

DataMember DataMember DataMember DataMember

获取或设置 DBindingCollection 的数据成员。Gets or sets the data member for a DBindingCollection.

DataSource DataSource DataSource DataSource

获取或设置 DBindingCollection 的数据源。Gets or sets the data source for a DBindingCollection.

Item[Object] Item[Object] Item[Object] Item[Object]

获取位于指定索引处的 DBindingGets the DBinding at the specified index.

UpdateMode UpdateMode UpdateMode UpdateMode

获取或设置 UpdateModeDBindingCollectionGets or sets the UpdateMode for a DBindingCollection.

方法

Add(Object, String, String, IDataFormatDisp, String) Add(Object, String, String, IDataFormatDisp, String) Add(Object, String, String, IDataFormatDisp, String) Add(Object, String, String, IDataFormatDisp, String)

DBinding 添加到 DBindingCollectionAdds a DBinding to a DBindingCollection.

Clear() Clear() Clear() Clear()

清除绑定对象的集合。Clears the collection of binding objects.

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回循环访问集合的枚举数。Returns an enumerator that iterates through a collection.

(Inherited from IEnumerable)
Remove(Object) Remove(Object) Remove(Object) Remove(Object)

DBinding 中移除 DBindingCollection 接口。Removes a DBinding interface from a DBindingCollection.

UpdateControls() UpdateControls() UpdateControls() UpdateControls()

DBindingCollection 对象的数据源获取当前行并重置通过该对象绑定的控件的内容。Gets the current row from the DBindingCollection object's data source and resets the contents of controls bound through the object.

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于