Editare

Partajați prin


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);
public override bool IsValid (object? value);
override this.IsValid : obj -> bool
Public Overrides Function IsValid (value As Object) As Boolean

Parameters

value
Object

The object to validate.

Returns

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

Exceptions

Length is less than zero.

Remarks

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

Applies to