> ## 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: App

> CDKTN Core API Reference for App in CSharp.

Represents a cdktn application.

## Initializers <a name="Initializers" id="cdktn.App.Initializer" />

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

new App(AppConfig Config = null);
```

| **Name**                                                                  | **Type**                                              | **Description** |
| ------------------------------------------------------------------------- | ----------------------------------------------------- | --------------- |
| <code><a href="#cdktn.App.Initializer.parameter.config">Config</a></code> | <code><a href="#cdktn.AppConfig">AppConfig</a></code> | configuration.  |

***

### `Config`<sup>Optional</sup> <a name="Config" id="cdktn.App.Initializer.parameter.config" />

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

configuration.

***

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

| **Name**                                                                      | **Description**                                                                                          |
| ----------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| <code><a href="#cdktn.App.toString">ToString</a></code>                       | Returns a string representation of this construct.                                                       |
| <code><a href="#cdktn.App.with">With</a></code>                               | Applies one or more mixins to this construct.                                                            |
| <code><a href="#cdktn.App.crossStackReference">CrossStackReference</a></code> | Creates a reference from one stack to another, invoked on prepareStack since it creates extra resources. |
| <code><a href="#cdktn.App.synth">Synth</a></code>                             | Synthesizes all resources to the output directory.                                                       |

***

### `ToString` <a name="ToString" id="cdktn.App.toString" />

```csharp theme={null}
private string ToString()
```

Returns a string representation of this construct.

### `With` <a name="With" id="cdktn.App.with" />

```csharp theme={null}
private IConstruct With(params IMixin[] Mixins)
```

Applies one or more mixins to this construct.

Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple `with()` calls if subsequent mixins should apply to added
constructs.

#### `Mixins`<sup>Required</sup> <a name="Mixins" id="cdktn.App.with.parameter.mixins" />

* *Type:* params Constructs.IMixin\[]

The mixins to apply.

***

### `CrossStackReference` <a name="CrossStackReference" id="cdktn.App.crossStackReference" />

```csharp theme={null}
private string CrossStackReference(TerraformStack FromStack, TerraformStack ToStack, string Identifier)
```

Creates a reference from one stack to another, invoked on prepareStack since it creates extra resources.

#### `FromStack`<sup>Required</sup> <a name="FromStack" id="cdktn.App.crossStackReference.parameter.fromStack" />

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

***

#### `ToStack`<sup>Required</sup> <a name="ToStack" id="cdktn.App.crossStackReference.parameter.toStack" />

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

***

#### `Identifier`<sup>Required</sup> <a name="Identifier" id="cdktn.App.crossStackReference.parameter.identifier" />

* *Type:* string

***

### `Synth` <a name="Synth" id="cdktn.App.synth" />

```csharp theme={null}
private void Synth()
```

Synthesizes all resources to the output directory.

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

| **Name**                                                      | **Description**               |
| ------------------------------------------------------------- | ----------------------------- |
| <code><a href="#cdktn.App.isConstruct">IsConstruct</a></code> | Checks if `x` is a construct. |
| <code><a href="#cdktn.App.isApp">IsApp</a></code>             | *No description.*             |
| <code><a href="#cdktn.App.of">Of</a></code>                   | *No description.*             |

***

### `IsConstruct` <a name="IsConstruct" id="cdktn.App.isConstruct" />

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

App.IsConstruct(object X);
```

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct`
instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on
disk are seen as independent, completely different libraries. As a
consequence, the class `Construct` in each copy of the `constructs` library
is seen as a different class, and an instance of one class will not test as
`instanceof` the other class. `npm install` will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the `constructs`
library can be accidentally installed, and `instanceof` will behave
unpredictably. It is safest to avoid using `instanceof`, and using
this type-testing method instead.

#### `X`<sup>Required</sup> <a name="X" id="cdktn.App.isConstruct.parameter.x" />

* *Type:* object

Any object.

***

### `IsApp` <a name="IsApp" id="cdktn.App.isApp" />

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

App.IsApp(object X);
```

#### `X`<sup>Required</sup> <a name="X" id="cdktn.App.isApp.parameter.x" />

* *Type:* object

***

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

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

App.Of(IConstruct Construct);
```

#### `Construct`<sup>Required</sup> <a name="Construct" id="cdktn.App.of.parameter.construct" />

* *Type:* Constructs.IConstruct

***

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

| **Name**                                                                                   | **Type**                                            | **Description**                                                 |
| ------------------------------------------------------------------------------------------ | --------------------------------------------------- | --------------------------------------------------------------- |
| <code><a href="#cdktn.App.property.node">Node</a></code>                                   | <code>Constructs.Node</code>                        | The tree node.                                                  |
| <code><a href="#cdktn.App.property.hclOutput">HclOutput</a></code>                         | <code>bool</code>                                   | *No description.*                                               |
| <code><a href="#cdktn.App.property.manifest">Manifest</a></code>                           | <code><a href="#cdktn.Manifest">Manifest</a></code> | *No description.*                                               |
| <code><a href="#cdktn.App.property.outdir">Outdir</a></code>                               | <code>string</code>                                 | The output directory into which resources will be synthesized.  |
| <code><a href="#cdktn.App.property.skipBackendValidation">SkipBackendValidation</a></code> | <code>bool</code>                                   | Whether to skip backend validation during synthesis of the app. |
| <code><a href="#cdktn.App.property.skipValidation">SkipValidation</a></code>               | <code>bool</code>                                   | Whether to skip all validations during synthesis of the app.    |
| <code><a href="#cdktn.App.property.targetStackId">TargetStackId</a></code>                 | <code>string</code>                                 | The stack which will be synthesized.                            |

***

### `Node`<sup>Required</sup> <a name="Node" id="cdktn.App.property.node" />

```csharp theme={null}
public Node Node { get; }
```

* *Type:* Constructs.Node

The tree node.

***

### `HclOutput`<sup>Required</sup> <a name="HclOutput" id="cdktn.App.property.hclOutput" />

```csharp theme={null}
public bool HclOutput { get; }
```

* *Type:* bool

***

### `Manifest`<sup>Required</sup> <a name="Manifest" id="cdktn.App.property.manifest" />

```csharp theme={null}
public Manifest Manifest { get; }
```

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

***

### `Outdir`<sup>Required</sup> <a name="Outdir" id="cdktn.App.property.outdir" />

```csharp theme={null}
public string Outdir { get; }
```

* *Type:* string

The output directory into which resources will be synthesized.

***

### `SkipBackendValidation`<sup>Required</sup> <a name="SkipBackendValidation" id="cdktn.App.property.skipBackendValidation" />

```csharp theme={null}
public bool SkipBackendValidation { get; }
```

* *Type:* bool

Whether to skip backend validation during synthesis of the app.

***

### `SkipValidation`<sup>Required</sup> <a name="SkipValidation" id="cdktn.App.property.skipValidation" />

```csharp theme={null}
public bool SkipValidation { get; }
```

* *Type:* bool

Whether to skip all validations during synthesis of the app.

***

### `TargetStackId`<sup>Optional</sup> <a name="TargetStackId" id="cdktn.App.property.targetStackId" />

```csharp theme={null}
public string TargetStackId { get; }
```

* *Type:* string

The stack which will be synthesized.

If not set, all stacks will be synthesized.

***
