Share via


ValidationProvider.Enabled Property

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The indication of whether the ValidationProvider will perform validations.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WinForms
Assembly:  Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WinForms (in Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WinForms.dll)

Syntax

'Declaration
<DefaultValueAttribute(True)> _
PublicPropertyEnabledAs Boolean
[DefaultValueAttribute(true)]
public bool Enabled { get; set; }
[DefaultValueAttribute(true)]
public:
property bool Enabled {
    bool get ();
    voidset (bool value);
}
publicfunction getEnabled () : boolean
publicfunction setEnabled (value : boolean)

Remarks

No validation will be performed if the ValidationProvider is not enabled, even when requested through the PerformValidation(Control) method.

All existing errors will be cleared if set to falsefalse (False in Visual Basic), but will not be restated if set back to truetrue (True in Visual Basic).

See Also

ValidationProvider Class

Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WinForms Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.