# ConnectionStringEnvironmentVariableNames

- Kind: `record`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.6.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62/src/Aspire.Hosting/ApplicationModel/ConnectionStringEnvironmentVariableNames.cs)
- Implements: `IEquatable<ConnectionStringEnvironmentVariableNames>`

Describes the logical and physical names used for a connection-string reference.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed record ConnectionStringEnvironmentVariableNames
    : System.IEquatable<Aspire.Hosting.ApplicationModel.ConnectionStringEnvironmentVariableNames>
{
    // ...
}
```

## Properties

- [IsExplicit](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames/properties.md#isexplicit) : `bool` `get; init` -- Gets whether the physical environment-variable name was explicitly supplied by the source resource.
- [LogicalName](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames/properties.md#logicalname) : `string` `get; init` -- Gets the logical connection name used by application configuration.
- [OriginalName](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames/properties.md#originalname) : `string` `get; init` -- Gets the original environment-variable name derived directly from the logical name.
- [PortableName](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames/properties.md#portablename) : `string` `get; init` -- Gets the portable environment-variable name.

## Methods

- [<Clone>$](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames/methods.md#clone) : [ConnectionStringEnvironmentVariableNames](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames.md)
- [Create(IResourceWithConnectionString, string)](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames/methods.md#create-iresourcewithconnectionstring-string) : [ConnectionStringEnvironmentVariableNames](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames.md) `static` -- Creates the logical and physical environment-variable names for a connection-string reference.
- [Deconstruct(string, string, string, bool)](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames/methods.md#deconstruct-string-string-string-bool) -- Deconstructs the logical and physical names for a connection-string reference.
- [Equals(object?)](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames/methods.md#equals-object) : `bool` -- Determines whether the specified object is equal to the current object.
- [Equals(ConnectionStringEnvironmentVariableNames?)](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames/methods.md#equals-connectionstringenvironmentvariablenames) : `bool` -- Indicates whether the current object is equal to another object of the same type.
- [GetHashCode](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames/methods.md#gethashcode) : `int` -- Serves as the default hash function.
- [GetPhysicalNames](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames/methods.md#getphysicalnames) : `IEnumerable<string>` -- Enumerates the distinct physical environment-variable names represented by this value.
- [op_Equality(ConnectionStringEnvironmentVariableNames?, ConnectionStringEnvironmentVariableNames?)](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames/methods.md#op-equality-connectionstringenvironmentvariablenames-connectionstringenvironmentvariablenames) : `bool` `static`
- [op_Inequality(ConnectionStringEnvironmentVariableNames?, ConnectionStringEnvironmentVariableNames?)](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames/methods.md#op-inequality-connectionstringenvironmentvariablenames-connectionstringenvironmentvariablenames) : `bool` `static`
- [ToString](/reference/api/csharp/aspire.hosting/connectionstringenvironmentvariablenames/methods.md#tostring) : `string` -- Returns a string that represents the current object.
