MBindingCollection MBindingCollection MBindingCollection MBindingCollection Class

定义

警告

此 API 现已过时。

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

public ref class MBindingCollection : IDisposable, Microsoft::VisualBasic::Compatibility::VB6::DBindingCollection
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public class MBindingCollection : IDisposable, Microsoft.VisualBasic.Compatibility.VB6.DBindingCollection
type MBindingCollection = class
    interface DBindingCollection
    interface IDisposable
Public Class MBindingCollection
Implements DBindingCollection, IDisposable
继承
MBindingCollectionMBindingCollectionMBindingCollectionMBindingCollection
属性
实现

注解

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。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. 大多数情况下,这些函数和对象可再现 .NET Framework.NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework.NET Framework. 只有 Visual Basic 6.0 代码模型与 .NET Framework.NET Framework 实现有显著区别时才需要这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework.NET Framework implementation.

构造函数

MBindingCollection() MBindingCollection() MBindingCollection() MBindingCollection()

初始化 MBindingCollection 的一个实例。Initializes an instance of a MBindingCollection.

属性

Count Count Count Count

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

DataMember DataMember DataMember DataMember

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

DataSource DataSource DataSource DataSource

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

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

获取位于指定索引处的 MBindingGets the MBinding at the specified index.

UpdateMode UpdateMode UpdateMode UpdateMode

获取或设置 UpdateModeMBindingCollectionGets or sets the UpdateMode for a MBindingCollection.

方法

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

MBinding 添加到 MBindingCollectionAdds a MBinding to a MBindingCollection.

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

MBinding 添加到 MBindingCollectionAdds a MBinding to a MBindingCollection.

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

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

Dispose() Dispose() Dispose() Dispose()

释放由 MBindingCollection 占用的非托管资源。Releases the unmanaged resources that are used by a MBindingCollection.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

释放由 MBindingCollection 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources that are used by a MBindingCollection and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

获取 MBindingCollection 的枚举数。Gets an enumerator for a MBindingCollection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

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

MBinding 中移除 MBindingCollection 接口。Removes a MBinding interface from a MBindingCollection.

SavePendingChanges() SavePendingChanges() SavePendingChanges() SavePendingChanges()

确定是否保存 MBindingCollection 中的更改。Determines whether to save changes in a MBindingCollection.

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)
UpdateControls() UpdateControls() UpdateControls() UpdateControls()

MBindingCollection 对象的数据源获取当前行并重置通过该对象绑定的控件的内容。Gets the current row from the data source of the MBindingCollection object 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.

适用于