SmsPageControl.BindTextDataAndValidation Method (Control, String, Object, String, String)
Binds the inherited Text property of the page control to the specified data member, and enables validation for the page control using the specified validation rule.
Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)
Usage
'Usage
Dim control As Control
Dim rulePropertyName As String
Dim dataSource As Object
Dim dataMember As String
Dim errorMessage As String
Me.BindTextDataAndValidation(control, rulePropertyName, dataSource, dataMember, errorMessage)
Syntax
'Declaration
Protected Sub BindTextDataAndValidation ( _
control As Control, _
rulePropertyName As String, _
dataSource As Object, _
dataMember As String, _
errorMessage As String _
)
protected void BindTextDataAndValidation (
Control control,
string rulePropertyName,
Object dataSource,
string dataMember,
string errorMessage
)
protected:
void BindTextDataAndValidation (
Control^ control,
String^ rulePropertyName,
Object^ dataSource,
String^ dataMember,
String^ errorMessage
)
protected void BindTextDataAndValidation (
Control control,
String rulePropertyName,
Object dataSource,
String dataMember,
String errorMessage
)
protected function BindTextDataAndValidation (
control : Control,
rulePropertyName : String,
dataSource : Object,
dataMember : String,
errorMessage : String
)
Parameters
- control
[in] System.Windows.Forms.Control object.
- rulePropertyName
[in] Name of a validation rule.
- dataSource
[in] System.Object instance for the data source.
- dataMember
[in] Name of the data member to which to bind the control property.
- 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