NetworkEndpointSnapshotList.TryAdd Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an AllocatedEndpoint snapshot for a specific network if one does not already exist.
public bool TryAdd(Aspire.Hosting.ApplicationModel.NetworkIdentifier networkID, Aspire.Hosting.ApplicationModel.ValueSnapshot<Aspire.Hosting.ApplicationModel.AllocatedEndpoint> snapshot);
member this.TryAdd : Aspire.Hosting.ApplicationModel.NetworkIdentifier * Aspire.Hosting.ApplicationModel.ValueSnapshot<Aspire.Hosting.ApplicationModel.AllocatedEndpoint> -> bool
Public Function TryAdd (networkID As NetworkIdentifier, snapshot As ValueSnapshot(Of AllocatedEndpoint)) As Boolean
Parameters
- networkID
- NetworkIdentifier
- snapshot
- ValueSnapshot<AllocatedEndpoint>