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

# CSharp: Aspects

> CDKTN Core API Reference for Aspects in CSharp.

Aspects can be applied to CDK tree scopes and can operate on the tree before synthesis.

## Methods <a name="Methods" id="Methods" />

| **Name**                                          | **Description**                                      |
| ------------------------------------------------- | ---------------------------------------------------- |
| <code><a href="#cdktn.Aspects.add">Add</a></code> | Adds an aspect to apply this scope before synthesis. |

***

### `Add` <a name="Add" id="cdktn.Aspects.add" />

```csharp theme={null}
private void Add(IAspect Aspect)
```

Adds an aspect to apply this scope before synthesis.

#### `Aspect`<sup>Required</sup> <a name="Aspect" id="cdktn.Aspects.add.parameter.aspect" />

* *Type:* <a href="#cdktn.IAspect">IAspect</a>

The aspect to add.

***

## Static Functions <a name="Static Functions" id="Static Functions" />

| **Name**                                        | **Description**                                                 |
| ----------------------------------------------- | --------------------------------------------------------------- |
| <code><a href="#cdktn.Aspects.of">Of</a></code> | Returns the `Aspects` object associated with a construct scope. |

***

### `Of` <a name="Of" id="cdktn.Aspects.of" />

```csharp theme={null}
using Io.Cdktn;

Aspects.Of(IConstruct Scope);
```

Returns the `Aspects` object associated with a construct scope.

#### `Scope`<sup>Required</sup> <a name="Scope" id="cdktn.Aspects.of.parameter.scope" />

* *Type:* Constructs.IConstruct

The scope for which these aspects will apply.

***

## Properties <a name="Properties" id="Properties" />

| **Name**                                                   | **Type**                                             | **Description**                                                |
| ---------------------------------------------------------- | ---------------------------------------------------- | -------------------------------------------------------------- |
| <code><a href="#cdktn.Aspects.property.all">All</a></code> | <code><a href="#cdktn.IAspect">IAspect</a>\[]</code> | The list of aspects which were directly applied on this scope. |

***

### `All`<sup>Required</sup> <a name="All" id="cdktn.Aspects.property.all" />

```csharp theme={null}
public IAspect[] All { get; }
```

* *Type:* <a href="#cdktn.IAspect">IAspect</a>\[]

The list of aspects which were directly applied on this scope.

***
