24 references to Format
System.Net.Sockets (24)
System\Net\Sockets\NetworkStream.cs (1)
721
return new IOException(SR.
Format
(resourceFormatString, innerException.Message), innerException);
System\Net\Sockets\Socket.cs (14)
1146
throw new ArgumentException(SR.
Format
(SR.net_sockets_zerolist, nameof(buffers)), nameof(buffers));
1640
throw new ArgumentException(SR.
Format
(SR.net_sockets_zerolist, nameof(buffers)), nameof(buffers));
2130
throw new ArgumentException(SR.
Format
(SR.net_sockets_invalid_optionValue, "LingerOption"), nameof(optionValue));
2143
throw new ArgumentException(SR.
Format
(SR.net_sockets_invalid_optionValue, "MulticastOption"), nameof(optionValue));
2153
throw new ArgumentException(SR.
Format
(SR.net_sockets_invalid_optionValue, "IPv6MulticastOption"), nameof(optionValue));
2999
throw new ArgumentException(SR.
Format
(SR.net_sockets_invalid_connect_algorithm, connectAlgorithm), nameof(connectAlgorithm));
3008
throw new ArgumentException(SR.
Format
(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e));
3112
throw new ArgumentException(SR.
Format
(SR.net_sockets_invalid_dnsendpoint, "e.RemoteEndPoint"), nameof(e));
3117
throw new ArgumentException(SR.
Format
(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e));
3166
throw new ArgumentException(SR.
Format
(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e));
3238
throw new ArgumentException(SR.
Format
(SR.InvalidNullArgument, "e.SendPacketsElements"), nameof(e));
3276
throw new ArgumentException(SR.
Format
(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e));
3358
throw new ArgumentException(SR.
Format
(SR.net_sockets_invalid_dnsendpoint, nameof(remoteEP)), nameof(remoteEP));
3973
throw new ArgumentException(SR.
Format
(SR.net_sockets_invalid_dnsendpoint, remoteEndPointArgumentName), remoteEndPointArgumentName);
System\Net\Sockets\Socket.Tasks.cs (3)
819
throw new ArgumentException(SR.
Format
(SR.net_sockets_zerolist, nameof(buffers)), nameof(buffers));
905
new IOException(SR.
Format
(SR.net_io_readwritefailure, e.Message), e) :
1378
new IOException(SR.
Format
(_isReadForCaching ? SR.net_io_readfailure : SR.net_io_writefailure, e.Message), e) :
System\Net\Sockets\Socket.Unix.cs (1)
182
throw new InvalidOperationException(SR.
Format
(SR.net_sockets_namedmustnotbebound, propertyName));
System\Net\Sockets\TCPClient.cs (1)
37
throw new ArgumentException(SR.
Format
(SR.net_protocol_invalid_family, "TCP"), nameof(family));
System\Net\Sockets\UDPClient.cs (4)
33
throw new ArgumentException(SR.
Format
(SR.net_protocol_invalid_family, "UDP"), nameof(family));
61
throw new ArgumentException(SR.
Format
(SR.net_protocol_invalid_family, "UDP"), nameof(family));
402
throw new ArgumentException(SR.
Format
(SR.net_protocol_invalid_multicast_family, "UDP"), nameof(multicastAddr));
486
throw new ArgumentException(SR.
Format
(SR.net_protocol_invalid_multicast_family, "UDP"), nameof(multicastAddr));