CreditCardAttribute Class
Represents the credit card attributes for the ASP.NET.MVC.
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
System.Attribute
System.ComponentModel.DataAnnotations.ValidationAttribute
System.ComponentModel.DataAnnotations.DataTypeAttribute
Microsoft.Web.Mvc.CreditCardAttribute
| Name | Description | |
|---|---|---|
![]() | CreditCardAttribute() | Initializes a new instance of the CreditCardAttribute class. |
| Name | Description | |
|---|---|---|
![]() | CustomDataType | (Inherited from DataTypeAttribute.) |
![]() | DataType | (Inherited from DataTypeAttribute.) |
![]() | DisplayFormat | (Inherited from DataTypeAttribute.) |
![]() | ErrorMessage | (Inherited from ValidationAttribute.) |
![]() | ErrorMessageResourceName | (Inherited from ValidationAttribute.) |
![]() | ErrorMessageResourceType | (Inherited from ValidationAttribute.) |
![]() | RequiresValidationContext | (Inherited from ValidationAttribute.) |
![]() | TypeId | (Inherited from Attribute.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Attribute.) |
![]() | FormatErrorMessage(String) | (Inherited from ValidationAttribute.) |
![]() | GetClientValidationRules(ModelMetadata, ControllerContext) | Validates the client rules for the credit card attributes. |
![]() | GetDataTypeName() | (Inherited from DataTypeAttribute.) |
![]() | GetHashCode() | (Inherited from Attribute.) |
![]() | GetType() | (Inherited from Object.) |
![]() | GetValidationResult(Object, ValidationContext) | (Inherited from ValidationAttribute.) |
![]() | IsDefaultAttribute() | (Inherited from Attribute.) |
![]() | IsValid(Object) | Determines whether the specified credit card number is valid.(Overrides DataTypeAttribute.IsValid(Object).) |
![]() | Match(Object) | (Inherited from Attribute.) |
![]() | ToString() | (Inherited from Object.) |
![]() | Validate(Object, String) | (Inherited from ValidationAttribute.) |
![]() | Validate(Object, ValidationContext) | (Inherited from ValidationAttribute.) |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | (Inherited from Attribute.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



