# FileDialogLoadPathEventArgs

Namespace: **Wisej.Web**

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

Provides data for the LoadPath event.

{% tabs %}
{% tab title="C#" %}

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

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class FileDialogLoadPathEventArgs
    Inherits CancelEventArgs
```

{% endtab %}
{% endtabs %}

Allows an application to filter the files and folders loaded by the [FileDialog](https://docs.wisej.com/api/wisej.web/common-dialogs/wisej.web.filedialog) and [FolderBrowserDialog](https://docs.wisej.com/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](#imagesource), [CreationTime](#creationtime) or [LastWriteTime](#lastwritetime) properties.

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) FileDialogLoadPathEventArgs(path, isDirectory)

Constructs a new instance of [FileDialogLoadPathEventArgs](https://docs.wisej.com/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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CreationTime

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) FileSize

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ImageSource

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsDirectory

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) LastWriteTime

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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) 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](https://docs.wisej.com/api/wisej.web/common-dialogs/wisej.web.filedialogloadpatheventhandler) | Represents the method that will handle the [LoadPath](https://docs.wisej.com/api/wisej.web/wisej.web.filedialog#loadpath) event. |
