MBindingCollection 类
定义
注意
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
提供一个接口,以在从 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
public 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
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
type MBindingCollection = class
interface DBindingCollection
interface IDisposable
Public Class MBindingCollection
Implements DBindingCollection, IDisposable
- 继承
-
MBindingCollection
- 属性
- 实现
注解
备注
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 中其他命名空间的功能。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.
构造函数
| MBindingCollection() |
初始化 MBindingCollection 的一个实例。Initializes an instance of a MBindingCollection. |
属性
| Count |
获取 MBindingCollection 中绑定的总数。Gets the total number of bindings in the MBindingCollection. |
| DataMember |
获取或设置 MBindingCollection 的数据成员。Gets or sets the data member for a MBindingCollection. |
| DataSource |
获取或设置 MBindingCollection 的数据源。Gets or sets the data source for a MBindingCollection. |
| Item[Object] |
获取位于指定索引处的 MBinding。Gets the MBinding at the specified index. |
| UpdateMode |
获取或设置 UpdateMode 的 MBindingCollection。Gets or sets the UpdateMode for a MBindingCollection. |
方法
| Add(Object, String, String, IDataFormatDisp, String) |
将 MBinding 添加到 MBindingCollection。Adds a MBinding to a MBindingCollection. |
| Add(Object, String, String, IDataFormatDisp, String, Boolean) |
将 MBinding 添加到 MBindingCollection。Adds a MBinding to a MBindingCollection. |
| Clear() |
清除绑定对象的集合。Clears the collection of binding objects. |
| Dispose() |
释放由 MBindingCollection 占用的非托管资源。Releases the unmanaged resources that are used by a MBindingCollection. |
| Dispose(Boolean) |
释放由 MBindingCollection 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources that are used by a MBindingCollection and optionally releases the managed resources. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetEnumerator() |
获取 MBindingCollection 的枚举数。Gets an enumerator for a MBindingCollection. |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| Remove(Object) |
从 MBinding 中移除 MBindingCollection 接口。Removes a MBinding interface from a MBindingCollection. |
| SavePendingChanges() |
确定是否保存 MBindingCollection 中的更改。Determines whether to save changes in a MBindingCollection. |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
| 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) |
将 IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type. |
| OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type. |
| AsParallel(IEnumerable) |
启用查询的并行化。Enables parallelization of a query. |
| AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。Converts an IEnumerable to an IQueryable. |