Partilhar via


ValidationProvider.IsValid 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.

Gets an indication of whether the values for the controls managed by the ValidationProvider have been successfully validated.

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
PublicReadOnlyPropertyIsValidAs Boolean
[BrowsableAttribute(false)]
public bool IsValid { get; }
[BrowsableAttribute(false)]
public:
property bool IsValid {
    bool get ();
}
publicfunction getIsValid () : boolean

Field Value

truetrue (True in Visual Basic) when the values for all the managed controls have been successfully validated; falsefalse (False in Visual Basic) otherwise.

Remarks

This property reflects the outcome of validations that were performed, so if there is a managed control with an invalid value for which validation has not been performed the value for this property might be 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.