Binds the property name of the control to the data member of the specified data source. Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)

Usage

Visual Basic
Dim control As Control
Dim controlPropertyName As String
Dim rulePropertyName As String
Dim dataSource As Object
Dim dataMember As String
Dim errorMessage As String

Me.BindControlDataAndValidation(control, controlPropertyName, rulePropertyName, dataSource, dataMember, errorMessage)

Syntax

Visual Basic
Protected Sub BindControlDataAndValidation ( _
		control As Control, _
		controlPropertyName As String, _
		rulePropertyName As String, _
		dataSource As Object, _
		dataMember As String, _
		errorMessage As String _
)
C#
protected void BindControlDataAndValidation (
		Control control,
		string controlPropertyName,
		string rulePropertyName,
		Object dataSource,
		string dataMember,
		string errorMessage
)
C++
protected:
void BindControlDataAndValidation (
		Control^ control, 
		String^ controlPropertyName, 
		String^ rulePropertyName, 
		Object^ dataSource, 
		String^ dataMember, 
		String^ errorMessage
)
J#
protected void BindControlDataAndValidation (
		Control control, 
		String controlPropertyName, 
		String rulePropertyName, 
		Object dataSource, 
		String dataMember, 
		String errorMessage
)
JScript
protected function BindControlDataAndValidation (
		control : Control, 
		controlPropertyName : String, 
		rulePropertyName : String, 
		dataSource : Object, 
		dataMember : String, 
		errorMessage : String
)

Parameters

control

[in] System.Windows.Forms.Control object.

controlPropertyName

[in] Property name of the control.

rulePropertyName

[in] Name of a validation rule for the specified property.

dataSource

[in] System.Object instance for the data source.

dataMember

[in] Name of the data member to which to bind the control property name.

errorMessage

[in] Validation error message.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also