FileExtensionsAttribute Class

 

Represents the attribute of file extensions.

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


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

NameDescription
System_CAPS_pubmethodFileExtensionsAttribute()

Initializes a new instance of the FileExtensionsAttribute 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_pubpropertyExtensions

Gets or sets the file extensions.

System_CAPS_pubpropertyRequiresValidationContext

(Inherited from ValidationAttribute.)

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodFormatErrorMessage(String)

Formats the error message to display if the file extensions validation fails.(Overrides ValidationAttribute.FormatErrorMessage(String).)

System_CAPS_pubmethodGetClientValidationRules(ModelMetadata, ControllerContext)

Checks the client validation rules.

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 of the object 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: