Skip to content
Docs Try Aspire

ResolvedPort Properties

Struct Properties 3 members
Represents a resolved port with information about whether it was allocated or explicitly specified.
Gets a value indicating whether the port was dynamically allocated. When true, the target environment may choose to ignore this port and use its own allocation mechanism. When false, the port was explicitly specified and should be used as-is.
public bool IsAllocated { get; init; }
Gets a value indicating whether the port was implicitly inferred from another value. When true, the port was derived (e.g., exposed port matching target port) rather than explicitly specified by the user.
public bool IsImplicit { get; init; }
Value Section titled Value nullable int?
Gets the port number, or null if no port was resolved.
public int? Value { get; init; }