# NetworkEndpointSnapshot

- 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/EndpointAnnotation.cs)
- Implements: `IEquatable<NetworkEndpointSnapshot>`

Represents an AllocatedEndpoint snapshot associated with a specific network.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

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

## Constructors

- [NetworkEndpointSnapshot(ValueSnapshot<AllocatedEndpoint>, NetworkIdentifier)](/reference/api/csharp/aspire.hosting/networkendpointsnapshot/constructors.md#constructor-valuesnapshot-allocatedendpoint-networkidentifier) -- Represents an AllocatedEndpoint snapshot associated with a specific network.

## Properties

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

## Methods

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