# NetworkEndpointSnapshot Constructors

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [NetworkEndpointSnapshot](/reference/api/csharp/aspire.hosting/networkendpointsnapshot.md)
- Kind: `Constructors`
- Members: `1`

Represents an AllocatedEndpoint snapshot associated with a specific network.

## NetworkEndpointSnapshot(ValueSnapshot<AllocatedEndpoint>, NetworkIdentifier)

- Name: `Constructor(ValueSnapshot<AllocatedEndpoint>, NetworkIdentifier)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/EndpointAnnotation.cs#L289)

Represents an AllocatedEndpoint snapshot associated with a specific network.

```csharp
public record NetworkEndpointSnapshot
{
    public NetworkEndpointSnapshot(
        ValueSnapshot<AllocatedEndpoint> Snapshot,
        NetworkIdentifier NetworkID)
    {
        // ...
    }
}
```

## Parameters

- `Snapshot` (`ValueSnapshot<AllocatedEndpoint>`)
  AllocatedEndpoint snapshot
- `NetworkID` ([NetworkIdentifier](/reference/api/csharp/aspire.hosting/networkidentifier.md))
  The ID of the network that is associated with the AllocatedEndpoint snapshot.
