MBindingCollection.Add 方法

定義

多載

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.

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

MBinding 加入至 MBindingCollectionAdds a MBinding to a MBindingCollection.

public Microsoft.VisualBasic.Compatibility.VB6.DBinding Add (object obj, string propertyName, string dataField, Microsoft.VisualBasic.Compatibility.VB6.IDataFormatDisp dataFormat = null, string key = null);
abstract member Add : obj * string * string * Microsoft.VisualBasic.Compatibility.VB6.IDataFormatDisp * string -> Microsoft.VisualBasic.Compatibility.VB6.DBinding
override this.Add : obj * string * string * Microsoft.VisualBasic.Compatibility.VB6.IDataFormatDisp * string -> Microsoft.VisualBasic.Compatibility.VB6.DBinding
Public Function Add (obj As Object, propertyName As String, dataField As String, Optional dataFormat As IDataFormatDisp = null, Optional key As String = null) As DBinding

參數

obj
Object

Object,其中包含資料。An Object that contains data.

propertyName
String

String,其中包含屬性名稱。A String that contains a property name.

dataField
String

String,其中包含資料欄位名稱。A String that contains the name of a data field.

dataFormat
IDataFormatDisp

選擇性。Optional. IDataFormatDisp 介面。An IDataFormatDisp interface.

key
String

選擇性。Optional. String,其中包含索引鍵值。A String that contains the key value.

傳回

MBinding 介面。A MBinding interface.

實作

備註

注意

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.

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

MBinding 加入至 MBindingCollectionAdds a MBinding to a MBindingCollection.

public:
 Microsoft::VisualBasic::Compatibility::VB6::DBinding ^ Add(System::Object ^ obj, System::String ^ propertyName, System::String ^ dataField, Microsoft::VisualBasic::Compatibility::VB6::IDataFormatDisp ^ dataFormat, System::String ^ key, bool immediateBind);
public Microsoft.VisualBasic.Compatibility.VB6.DBinding Add (object obj, string propertyName, string dataField, Microsoft.VisualBasic.Compatibility.VB6.IDataFormatDisp dataFormat, string key, bool immediateBind);
member this.Add : obj * string * string * Microsoft.VisualBasic.Compatibility.VB6.IDataFormatDisp * string * bool -> Microsoft.VisualBasic.Compatibility.VB6.DBinding
Public Function Add (obj As Object, propertyName As String, dataField As String, dataFormat As IDataFormatDisp, key As String, immediateBind As Boolean) As DBinding

參數

obj
Object

Object,其中包含資料。An Object that contains data.

propertyName
String

String,其中包含屬性名稱。A String that contains a property name.

dataField
String

String,其中包含資料欄位名稱。A String that contains the name of a data field.

dataFormat
IDataFormatDisp

IDataFormatDisp 介面。An IDataFormatDisp interface.

key
String

String,其中包含索引鍵值。A String that contains the key value.

immediateBind
Boolean

true 表示立即繫結,否則為 falsetrue to bind immediately; otherwise false.

傳回

MBinding 介面。A MBinding interface.

備註

注意

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.

適用於