Search Results for

Show / Hide Table of Contents

# Class FileValidatingEventArgs

Provides metadata used when validating an uploaded file on the server.

##### Inheritance

object
EventArgs
CancelEventArgs
FileValidatingEventArgs

##### Inherited Members

CancelEventArgs.Cancel
EventArgs.Empty
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

###### Namespace: AjaxUploader.Events

###### Assembly: AjaxUploader.dll

##### Syntax

    public class FileValidatingEventArgs : CancelEventArgs

### Constructors

#### FileValidatingEventArgs()

Initializes a new instance of the FileValidatingEventArgs class.

##### Declaration

    public FileValidatingEventArgs()

### Properties

#### CancelReason

Gets or sets the validation error message used when the upload is canceled.

##### Declaration

    public string CancelReason { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### ContentType

Gets or sets the detected content type.

##### Declaration

    public string ContentType { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### FileName

Gets or sets the original file name.

##### Declaration

    public string FileName { get; set; }

##### Property Value

Type | Description
--- | ---
string |

#### FileSize

Gets or sets the uploaded file size in bytes.

##### Declaration

    public long FileSize { get; set; }

##### Property Value

Type | Description
--- | ---
long |