DBindingCollection 介面

定義

警告

此 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. https://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

取得 DBindingCollection 中的繫結總數。Gets the total number of bindings in the DBindingCollection.

DataMember

取得或設定 DBindingCollection 的資料成員。Gets or sets the data member for a DBindingCollection.

DataSource

取得或設定 DBindingCollection 的資料來源。Gets or sets the data source for a DBindingCollection.

Item[Object]

取得指定索引處的 DBindingGets the DBinding at the specified index.

UpdateMode

取得或設定 UpdateModeDBindingCollectionGets or sets the UpdateMode for a DBindingCollection.

方法

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

DBinding 加入至 DBindingCollectionAdds a DBinding to a DBindingCollection.

Clear()

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

GetEnumerator()

傳回逐一查看集合的列舉值。Returns an enumerator that iterates through a collection.

(繼承來源 IEnumerable)
Remove(Object)

DBinding 移除 DBindingCollection 介面。Removes a DBinding interface from a DBindingCollection.

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)

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.

適用於