# NetworkIdentifier

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

A network identifier used to specify the network context for resources within an Aspire application model.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

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

## Constructors

- [NetworkIdentifier(string)](/reference/api/csharp/aspire.hosting/networkidentifier/constructors.md#constructor-string) -- A network identifier used to specify the network context for resources within an Aspire application model.

## Properties

- [Value](/reference/api/csharp/aspire.hosting/networkidentifier/properties.md#value) : `string` `get; init`

## Methods

- [<Clone>$](/reference/api/csharp/aspire.hosting/networkidentifier/methods.md#clone) : [NetworkIdentifier](/reference/api/csharp/aspire.hosting/networkidentifier.md) `virtual`
- [Deconstruct(string)](/reference/api/csharp/aspire.hosting/networkidentifier/methods.md#deconstruct-string)
- [Equals(object?)](/reference/api/csharp/aspire.hosting/networkidentifier/methods.md#equals-object) : `bool` -- Determines whether the specified object is equal to the current object.
- [Equals(NetworkIdentifier?)](/reference/api/csharp/aspire.hosting/networkidentifier/methods.md#equals-networkidentifier) : `bool` `virtual` -- Indicates whether the current object is equal to another object of the same type.
- [GetHashCode](/reference/api/csharp/aspire.hosting/networkidentifier/methods.md#gethashcode) : `int` -- Serves as the default hash function.
- [op_Equality(NetworkIdentifier?, NetworkIdentifier?)](/reference/api/csharp/aspire.hosting/networkidentifier/methods.md#op-equality-networkidentifier-networkidentifier) : `bool` `static`
- [op_Inequality(NetworkIdentifier?, NetworkIdentifier?)](/reference/api/csharp/aspire.hosting/networkidentifier/methods.md#op-inequality-networkidentifier-networkidentifier) : `bool` `static`
- [ToString](/reference/api/csharp/aspire.hosting/networkidentifier/methods.md#tostring) : `string` -- Returns a string that represents the current object.
