12 references to MaxPort
System (3)
net\System\Net\Configuration\SmtpNetworkElement.cs (1)
146null, new IntegerValidator(IPEndPoint.MinPort+1, IPEndPoint.MaxPort), ConfigurationPropertyOptions.None);
net\System\Net\DnsEndPoint.cs (1)
29if(port < IPEndPoint.MinPort || port > IPEndPoint.MaxPort) {
net\System\Net\Internal.cs (1)
915return port>=IPEndPoint.MinPort && port<=IPEndPoint.MaxPort;
System.Net (2)
net\PeerToPeer\PeerNameRegistration.cs (2)
106if (port < IPEndPoint.MinPort || port > IPEndPoint.MaxPort) 142if (value < IPEndPoint.MinPort || value > IPEndPoint.MaxPort)
System.ServiceModel (4)
System\ServiceModel\Channels\PeerHelpers.cs (1)
501public const int MaxPort = IPEndPoint.MaxPort;
System\ServiceModel\Channels\RemoteEndpointMessageProperty.cs (2)
25if (port < IPEndPoint.MinPort || port > IPEndPoint.MaxPort) 28SR.GetString(SR.ValueMustBeInRange, IPEndPoint.MinPort, IPEndPoint.MaxPort));
System\ServiceModel\Configuration\DefaultPortElement.cs (1)
38[IntegerValidator(MinValue = IPEndPoint.MinPort, MaxValue = IPEndPoint.MaxPort)]
System.ServiceModel.Channels (3)
System\ServiceModel\Channels\ServerUdpOutputChannel.cs (3)
291if (destination.Port < 1 || destination.Port > IPEndPoint.MaxPort) 295throw FxTrace.Exception.AsError(new InvalidOperationException(SR.ViaUriIsNotValid(destination, SR.PortNumberInvalid(1, IPEndPoint.MaxPort)))); 299throw FxTrace.Exception.AsError(new InvalidOperationException(SR.ToAddressIsNotValid(destination, SR.PortNumberInvalid(1, IPEndPoint.MaxPort))));