Skip to content
Docs Try Aspire

ResolvedPort Methods

Struct Methods 5 members
Represents a resolved port with information about whether it was allocated or explicitly specified.
Creates a ResolvedPort with an allocated port.
public struct ResolvedPort
{
public static ResolvedPort Allocated(
int port)
{
// ...
}
}
port int The allocated port number.
ResolvedPort A ResolvedPort with IsAllocated set to true.
Creates a ResolvedPort with an explicitly specified port.
public struct ResolvedPort
{
public static ResolvedPort Explicit(
int port)
{
// ...
}
}
port int The explicitly specified port number.
ResolvedPort A ResolvedPort with IsAllocated set to false.
Creates a ResolvedPort with an implicitly inferred port.
public struct ResolvedPort
{
public static ResolvedPort Implicit(
int port)
{
// ...
}
}
port int The implicitly inferred port number.
ResolvedPort A ResolvedPort with IsImplicit set to true.
Creates a ResolvedPort with no port (null).
public struct ResolvedPort
{
public static ResolvedPort None()
{
// ...
}
}
ResolvedPort A ResolvedPort with Value set to null.
op_Implicit(ResolvedPort) Section titled op_Implicit(ResolvedPort) staticnullable int?
Implicitly converts a ResolvedPort to a nullable int.
public struct ResolvedPort
{
public static implicit operator int?(
ResolvedPort resolvedPort)
{
// ...
}
}
resolvedPort ResolvedPort