# FileDialogLoadPathEventArgs

URL: https://docs.wisej.com/api/wisej.web/common-dialogs/wisej.web.filedialogloadpatheventargs

Version: 4.1
Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.1.0.0)

Provides data for the LoadPath event.

- C# - VB.NET

```csharp
public class FileDialogLoadPathEventArgs : CancelEventArgs
```

```visual
Public Class FileDialogLoadPathEventArgs
    Inherits CancelEventArgs
```

Allows an application to filter the files and folders loaded by the [FileDialog](/api/wisej.web/common-dialogs/wisej.web.filedialog) and [FolderBrowserDialog](/api/wisej.web/common-dialogs/wisej.web.folderbrowserdialog) components and to set the icon, creation date and modified date.

To skip a file or folder, set e.Cancel = true. To set a file's icon, or date, set the [ImageSource](/api/wisej.web/common-dialogs/wisej.web.filedialogloadpatheventargs#imagesource) , [CreationTime](/api/wisej.web/common-dialogs/wisej.web.filedialogloadpatheventargs#creationtime) or [LastWriteTime](/api/wisej.web/common-dialogs/wisej.web.filedialogloadpatheventargs#lastwritetime) properties.

## Constructors

### ![Instance member](/img/api/instance.png) FileDialogLoadPathEventArgs(path, isDirectory)

Constructs a new instance of [FileDialogLoadPathEventArgs](/api/wisej.web/common-dialogs/wisej.web.filedialogloadpatheventargs) .

| Name | Type | Description | **path** | [String](https://docs.microsoft.com/dotnet/api/system.string) | Path of the file or directory. | **isDirectory** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | Indicates that the *path* is for a directory. 

## Properties

### ![Instance member](/img/api/instance.png) CreationTime

[DateTime](https://docs.microsoft.com/dotnet/api/system.datetime) : Sets the creation DateTime of the file.

### ![Instance member](/img/api/instance.png) FileSize

[Int64](https://docs.microsoft.com/dotnet/api/system.int64) : Sets the file size in bytes.

### ![Instance member](/img/api/instance.png) ImageSource

[String](https://docs.microsoft.com/dotnet/api/system.string) : Sets the name or path of the icon to display next to the file.

### ![Instance member](/img/api/instance.png) IsDirectory

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) : Returns true when the [Path](/api/wisej.web/common-dialogs/wisej.web.filedialogloadpatheventargs#path) refers to a directory.

### ![Instance member](/img/api/instance.png) LastWriteTime

[DateTime](https://docs.microsoft.com/dotnet/api/system.datetime) : Sets the last modified DateTime of the file.

### ![Instance member](/img/api/instance.png) Path

[String](https://docs.microsoft.com/dotnet/api/system.string) : Returns the full path of the file or folder being loaded.

## Used By

| Name | Description | [FileDialogLoadPathEventHandler](/api/wisej.web/common-dialogs/wisej.web.filedialogloadpatheventhandler) | Represents the method that will handle the [LoadPath](/api/wisej.web/common-dialogs/wisej.web.filedialog#loadpath) event.
