SmsPageControl.BindControlDataAndValidation Method

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

'Usage
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

'Declaration
Protected Sub BindControlDataAndValidation ( _
    control As Control, _
    controlPropertyName As String, _
    rulePropertyName As String, _
    dataSource As Object, _
    dataMember As String, _
    errorMessage As String _
)
protected void BindControlDataAndValidation (
    Control control,
    string controlPropertyName,
    string rulePropertyName,
    Object dataSource,
    string dataMember,
    string errorMessage
)
protected:
void BindControlDataAndValidation (
    Control^ control, 
    String^ controlPropertyName, 
    String^ rulePropertyName, 
    Object^ dataSource, 
    String^ dataMember, 
    String^ errorMessage
)
protected void BindControlDataAndValidation (
    Control control, 
    String controlPropertyName, 
    String rulePropertyName, 
    Object dataSource, 
    String dataMember, 
    String errorMessage
)
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

Reference

SmsPageControl Class
SmsPageControl Members
Microsoft.ConfigurationManagement.AdminConsole Namespace