CreditCardAttribute.IsValid Method (Object)
Determines whether the specified credit card number is valid.
Namespace: Microsoft.Web.Mvc
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
public override bool IsValid(
object value
)
public:
virtual bool IsValid(
Object^ value
) override
override IsValid :
value:Object -> bool
Public Overrides Function IsValid (
value As Object
) As Boolean
Parameters
value
Type: System.ObjectThe value to validate.
Return Value
Type: System.Boolean
true if the credit card number is valid; otherwise, false.
See Also
CreditCardAttribute Class
Microsoft.Web.Mvc Namespace
Return to top