Class CloudUploadFileSizeValidationRule
Validation rule for the maximum size of a file.
Inheritance
System.Object
CloudUploadFileSizeValidationRule
Namespace: Telerik.Windows.Cloud.Controls.Upload
Assembly: Telerik.Windows.Cloud.Controls.dll
Syntax
public sealed class CloudUploadFileSizeValidationRule : ValidationRule
Constructors
CloudUploadFileSizeValidationRule()
Declaration
public CloudUploadFileSizeValidationRule()
Properties
ErrorContent
The error content.
Declaration
public object ErrorContent { get; set; }
Property Value
System.Object
|
MaxFileSize
The max file size.
Declaration
public long MaxFileSize { get; set; }
Property Value
System.Int64
|
Methods
Validate(Object, CultureInfo)
Performs validation.
Declaration
public override ValidationResult Validate(object value, CultureInfo cultureInfo)
Parameters
System.Object
value
The file name. |
System.Globalization.CultureInfo
cultureInfo
The culture to use in this rule. |
Returns
System.Windows.Controls.ValidationResult
|