> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.nimbleapps.cloud/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

### &#x20;.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. |

### &#x20;.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

### &#x20;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`

### &#x20;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`

### &#x20;Path

Gets the file path.

#### Syntax

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

#### Property Value

Type: `string`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.