> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# SimpleMessageBusFileAttribute

> Attribute used to bind a parameter to a file.

## Definition

**Assembly:** CloudNimble.SimpleMessageBus.Dispatch.FileSystem.dll

**Namespace:** CloudNimble.SimpleMessageBus.Dispatch.Triggers

**Inheritance:** System.Attribute

## Syntax

```csharp theme={"dark"}
CloudNimble.SimpleMessageBus.Dispatch.Triggers.SimpleMessageBusFileAttribute
```

## Summary

Attribute used to bind a parameter to a file.

## Remarks

The method parameter type can be one of the following:

## Constructors

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor

Constructs a new instance.

#### Syntax

```csharp theme={"dark"}
public SimpleMessageBusFileAttribute(string path, System.IO.FileAccess access = 1)
```

#### Parameters

| Name     | Type                   | Description                                                                           |
| -------- | ---------------------- | ------------------------------------------------------------------------------------- |
| `path`   | `string`               | The file path to bind to.                                                             |
| `access` | `System.IO.FileAccess` | The [FileAccess](https://learn.microsoft.com/dotnet/api/system.io.fileaccess) to use. |

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor

Constructs a new instance.

#### Syntax

```csharp theme={"dark"}
public SimpleMessageBusFileAttribute(string path, System.IO.FileAccess access, System.IO.FileMode mode)
```

#### Parameters

| Name     | Type                   | Description                                                                           |
| -------- | ---------------------- | ------------------------------------------------------------------------------------- |
| `path`   | `string`               | The file path to bind to.                                                             |
| `access` | `System.IO.FileAccess` | The [FileAccess](https://learn.microsoft.com/dotnet/api/system.io.fileaccess) to use. |
| `mode`   | `System.IO.FileMode`   | The [FileMode](https://learn.microsoft.com/dotnet/api/system.io.filemode) to use.     |

## Properties

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Access

Gets he [FileAccess](https://learn.microsoft.com/dotnet/api/system.io.fileaccess) to use.

#### Syntax

```csharp theme={"dark"}
public System.IO.FileAccess Access { get; private set; }
```

#### Property Value

Type: `System.IO.FileAccess`

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Mode

Gets the [FileMode](https://learn.microsoft.com/dotnet/api/system.io.filemode) to use.

#### Syntax

```csharp theme={"dark"}
public System.IO.FileMode Mode { get; private set; }
```

#### Property Value

Type: `System.IO.FileMode`

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Path

Gets the file path.

#### Syntax

```csharp theme={"dark"}
public string Path { get; private set; }
```

#### Property Value

Type: `string`
