> ## 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.

# EnvironmentValue

> Represents a value in the environment configuration.

## Definition

**Assembly:** CloudNimble.Breakdance.DotHttp.dll

**Namespace:** CloudNimble.Breakdance.DotHttp.Models

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
CloudNimble.Breakdance.DotHttp.Models.EnvironmentValue
```

## Summary

Represents a value in the environment configuration.

## Remarks

Can be a simple string or a provider-based secret reference (AspnetUserSecrets, AzureKeyVault, etc.).

## Examples

```csharp theme={"dark"}
// Simple string value
{ "ApiKey": "dev-key-123" }

// Provider-based secret
{
  "ApiKey": {
    "provider": "AzureKeyVault",
    "secretName": "ProdApiKey",
    "resourceId": "/subscriptions/.../vaults/my-vault"
  }
}
```

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={"dark"}
public EnvironmentValue()
```

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### &#x20;IsSecret

Gets a value indicating whether this is a provider-based secret.

#### Syntax

```csharp theme={"dark"}
public bool IsSecret { get; }
```

#### Property Value

Type: `bool`

#### Remarks

Returns true when [EnvironmentValue.Provider](https://easyaf.nimbleapps.cloud/breakdance/api-reference/CloudNimble/Breakdance/DotHttp/Models/EnvironmentValue.md#provider) is not null or empty.

### &#x20;Provider

Gets or sets the provider type for secret resolution.

#### Syntax

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

#### Property Value

Type: `string`

#### Remarks

Supported providers include "AspnetUserSecrets", "AzureKeyVault", and "Encrypted".

### &#x20;ResourceId

Gets or sets the Azure resource ID for the AzureKeyVault provider.

#### Syntax

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

#### Property Value

Type: `string`

### &#x20;SecretName

Gets or sets the secret name for provider-based values.

#### Syntax

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

#### Property Value

Type: `string`

### &#x20;Value

Gets or sets the simple string value when not using a provider.

#### Syntax

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

#### Property Value

Type: `string`

## Methods

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;FromString

Creates an [EnvironmentValue](https://easyaf.nimbleapps.cloud/breakdance/api-reference/CloudNimble/Breakdance/DotHttp/Models/EnvironmentValue.md) from a simple string.

#### Syntax

```csharp theme={"dark"}
public static CloudNimble.Breakdance.DotHttp.Models.EnvironmentValue FromString(string value)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `value` | `string` | The string value. |

#### Returns

Type: `CloudNimble.Breakdance.DotHttp.Models.EnvironmentValue`
A new [EnvironmentValue](https://easyaf.nimbleapps.cloud/breakdance/api-reference/CloudNimble/Breakdance/DotHttp/Models/EnvironmentValue.md) with the specified value.

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`


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