AcceptAttribute Class

 

Represents an attribute that accepts the validation of value.

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


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

NameDescription
System_CAPS_pubmethodAcceptAttribute()

Initializes a new instance of the AcceptAttribute class.

NameDescription
System_CAPS_pubpropertyCustomDataType

(Inherited from DataTypeAttribute.)

System_CAPS_pubpropertyDataType

(Inherited from DataTypeAttribute.)

System_CAPS_pubpropertyDisplayFormat

(Inherited from DataTypeAttribute.)

System_CAPS_pubpropertyErrorMessage

(Inherited from ValidationAttribute.)

System_CAPS_pubpropertyErrorMessageResourceName

(Inherited from ValidationAttribute.)

System_CAPS_pubpropertyErrorMessageResourceType

(Inherited from ValidationAttribute.)

System_CAPS_pubpropertyMimeTypes

Gets or sets the acceptance value for the mime types.

System_CAPS_pubpropertyRequiresValidationContext

(Inherited from ValidationAttribute.)

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodFormatErrorMessage(String)

Applies formatting to an error message based on the data field where the acceptance error occurred.(Overrides ValidationAttribute.FormatErrorMessage(String).)

System_CAPS_pubmethodGetClientValidationRules(ModelMetadata, ControllerContext)

Gets a list of acceptance value client validation rules for the property using the specified model metadata and controller context.

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 value 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: