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)

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

一个包含数据的 ObjectAn Object that contains data.

propertyName
String

一个包含属性名称的 StringA String that contains a property name.

dataField
String

一个包含数据字段名称的 StringA String that contains the name of a data field.

dataFormat
IDataFormatDisp

可选。Optional. 一个 IDataFormatDisp 接口。An IDataFormatDisp interface.

key
String

可选。Optional. 一个包含键值的 StringA 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)

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

一个包含数据的 ObjectAn Object that contains data.

propertyName
String

一个包含属性名称的 StringA String that contains a property name.

dataField
String

一个包含数据字段名称的 StringA String that contains the name of a data field.

dataFormat
IDataFormatDisp

一个 IDataFormatDisp 接口。An IDataFormatDisp interface.

key
String

一个包含键值的 StringA 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.

适用于