MBindingCollection 類別

定義

警告

此 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. https://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
繼承
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.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 的執行個體。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]

取得指定索引處的 MBindingGets the MBinding at the specified index.

UpdateMode

取得或設定 UpdateModeMBindingCollectionGets or sets the UpdateMode for a MBindingCollection.

方法

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

MBinding 加入至 MBindingCollectionAdds a MBinding to a MBindingCollection.

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

MBinding 加入至 MBindingCollectionAdds a MBinding to a MBindingCollection.

Clear()

清除繫結物件的集合。Clears the collection of binding objects.

Dispose()

釋放 MBindingCollection 所使用的 Unmanaged 資源。Releases the unmanaged resources that are used by a MBindingCollection.

Dispose(Boolean)

釋放 MBindingCollection 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。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()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
Remove(Object)

MBinding 移除 MBindingCollection 介面。Removes a MBinding interface from a MBindingCollection.

SavePendingChanges()

判斷是否要將變更儲存在 MBindingCollectionDetermines 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 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

適用於