ValidationHelper.IsValid Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Overloads

IsValid(IValidatableObject) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.

IsValid(IValidatableObject)

Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.

public static bool IsValid(this IValidatableObject instance)

Parameters

instance
System.ComponentModel.DataAnnotations.IValidatableObject

The object to validate.

Returns

bool

IsValid(object)

Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.

public static bool IsValid(this object instance)

Parameters

instance
object

The object to validate.

Returns

bool