CreditCardAttribute Class

 

Represents the credit card attributes for the ASP.NET.MVC.

Namespace:   Microsoft.Web.Mvc
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)


[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = false)]
public sealed class CreditCardAttribute : DataTypeAttribute, 
	IClientValidatable

NameDescription
System_CAPS_pubmethodCreditCardAttribute()

Initializes a new instance of the CreditCardAttribute class.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodFormatErrorMessage(String)

(Inherited from ValidationAttribute.)

System_CAPS_pubmethodGetClientValidationRules(ModelMetadata, ControllerContext)

Validates the client rules for the credit card attributes.

System_CAPS_pubmethodGetDataTypeName()

(Inherited from DataTypeAttribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetValidationResult(Object, ValidationContext)

(Inherited from ValidationAttribute.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodIsValid(Object)

Determines whether the specified credit card number is valid.(Overrides DataTypeAttribute.IsValid(Object).)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodValidate(Object, String)

(Inherited from ValidationAttribute.)

System_CAPS_pubmethodValidate(Object, ValidationContext)

(Inherited from ValidationAttribute.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: