Skip to content
DocsTry Aspire
DocsTry

ResolvedPort Methods

StructMethods5 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)
{
// ...
}
}
portintThe allocated port number.
ResolvedPortA ResolvedPort with IsAllocated set to true.
Creates a ResolvedPort with an explicitly specified port.
public struct ResolvedPort
{
public static ResolvedPort Explicit(
int port)
{
// ...
}
}
portintThe explicitly specified port number.
ResolvedPortA ResolvedPort with IsAllocated set to false.
Creates a ResolvedPort with an implicitly inferred port.
public struct ResolvedPort
{
public static ResolvedPort Implicit(
int port)
{
// ...
}
}
portintThe implicitly inferred port number.
ResolvedPortA ResolvedPort with IsImplicit set to true.
Creates a ResolvedPort with no port (null).
public struct ResolvedPort
{
public static ResolvedPort None()
{
// ...
}
}
ResolvedPortA ResolvedPort with Value set to null.
op_Implicit(ResolvedPort)Section titled op_Implicit(ResolvedPort)staticnullableint?
Implicitly converts a ResolvedPort to a nullable int.
public struct ResolvedPort
{
public static implicit operator int?(
ResolvedPort resolvedPort)
{
// ...
}
}
resolvedPortResolvedPort