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