New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class UploadValidationSettings : IUploadValidationSettings

Inheritance: objectUploadValidationSettings

Implements: IUploadValidationSettings

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public UploadValidationSettings()

Properties

Lists which file extensions are allowed to be uploaded

C#
public string[] AllowedExtensions { get; set; }

Implements: IUploadValidationSettings.AllowedExtensions

Defines the maximum file size that can be uploaded in bytes

C#
public double? MaxFileSize { get; set; }

Implements: IUploadValidationSettings.MaxFileSize

Defines the minimum file size that can be uploaded in bytes

C#
public double? MinFileSize { get; set; }

Implements: IUploadValidationSettings.MinFileSize

Methods

Serializes the Validation uploading settings to the writer.

C#
public void SerializeTo(string key, IDictionary<string, object> options)
Parameters:keystring

The serialization key.

optionsIDictionary<string, object>

The target dictionary.