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

Returns

System.Boolean

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
System.Object

Returns

System.Boolean