MinLengthAttribute.IsValid(Object) MinLengthAttribute.IsValid(Object) MinLengthAttribute.IsValid(Object) MinLengthAttribute.IsValid(Object) Method

Definition

Determines whether a specified object is valid.

public:
 override bool IsValid(System::Object ^ value);
public override bool IsValid (object value);
override this.IsValid : obj -> bool
Public Overrides Function IsValid (value As Object) As Boolean

Parameters

value
Object Object Object Object

The object to validate.

Returns

true if the specified object is valid; otherwise, false.

Exceptions

Remarks

This method returns true if value is null. It assumes the RequiredAttribute is used if the value may not be null.

Applies to