12 references to Format
System.Net.Sockets (12)
System\Net\Sockets\Socket.cs (9)
1758
throw new ArgumentException(SR.
Format
(SR.net_InvalidEndPointAddressFamily, remoteEP.AddressFamily, _addressFamily), nameof(remoteEP));
2408
throw new ArgumentOutOfRangeException(nameof(checkRead), SR.
Format
(SR.net_sockets_toolarge_select, nameof(checkRead), MaxSelect.ToString()));
2412
throw new ArgumentOutOfRangeException(nameof(checkWrite), SR.
Format
(SR.net_sockets_toolarge_select, nameof(checkWrite), MaxSelect.ToString()));
2416
throw new ArgumentOutOfRangeException(nameof(checkError), SR.
Format
(SR.net_sockets_toolarge_select, nameof(checkError), MaxSelect.ToString()));
2698
throw new ArgumentException(SR.
Format
(SR.net_InvalidEndPointAddressFamily, endPoint.AddressFamily, _addressFamily), nameof(endPoint));
2738
throw new ArgumentException(SR.
Format
(SR.net_InvalidEndPointAddressFamily, endPoint.AddressFamily, _addressFamily), nameof(endPoint));
3121
throw new ArgumentException(SR.
Format
(SR.net_InvalidEndPointAddressFamily, endPointSnapshot.AddressFamily, _addressFamily), nameof(e));
3170
throw new ArgumentException(SR.
Format
(SR.net_InvalidEndPointAddressFamily, e.RemoteEndPoint.AddressFamily, _addressFamily), nameof(e));
3978
throw new ArgumentException(SR.
Format
(SR.net_InvalidEndPointAddressFamily, remoteEndPoint.AddressFamily, _addressFamily), remoteEndPointArgumentName);
System\Net\Sockets\SocketPal.Unix.cs (2)
1900
throw new ArgumentException(SR.
Format
(SR.net_sockets_select, socket?.GetType().FullName ?? "null", typeof(Socket).FullName), nameof(socketList));
2007
throw new ArgumentException(SR.
Format
(SR.net_sockets_select, socket?.GetType().FullName ?? "null", typeof(Socket).FullName), nameof(socketList));
System\Net\Sockets\UnixDomainSocketEndPoint.cs (1)
51
SR.
Format
(SR.ArgumentOutOfRange_PathLengthInvalid, path, s_nativePathLength));