34 references to Unspecified
System.Net.NameResolution (27)
System\Net\Dns.cs (27)
51IPHostEntry ipHostEntry = GetHostEntryCore(address, AddressFamily.Unspecified); 58GetHostEntry(hostNameOrAddress, AddressFamily.Unspecified); 64/// <param name="family">The address family for which IPs should be retrieved. If <see cref="AddressFamily.Unspecified"/>, retrieve all IPs regardless of address family.</param> 94GetHostEntryAsync(hostNameOrAddress, AddressFamily.Unspecified, CancellationToken.None); 106GetHostEntryAsync(hostNameOrAddress, AddressFamily.Unspecified, cancellationToken); 112/// <param name="family">The address family for which IPs should be retrieved. If <see cref="AddressFamily.Unspecified"/>, retrieve all IPs regardless of address family.</param> 166IPHostEntry ipHostEntry = GetHostEntryCore((IPAddress)s, AddressFamily.Unspecified, activity); 188=> GetHostAddresses(hostNameOrAddress, AddressFamily.Unspecified); 194/// <param name="family">The address family for which IPs should be retrieved. If <see cref="AddressFamily.Unspecified"/>, retrieve all IPs regardless of address family.</param> 212addresses = (family == AddressFamily.Unspecified || address.AddressFamily == family) ? new IPAddress[] { address } : Array.Empty<IPAddress>(); 224(Task<IPAddress[]>)GetHostEntryOrAddressesCoreAsync(hostNameOrAddress, justReturnParsedIp: true, throwOnIIPAny: true, justAddresses: true, AddressFamily.Unspecified, CancellationToken.None); 236(Task<IPAddress[]>)GetHostEntryOrAddressesCoreAsync(hostNameOrAddress, justReturnParsedIp: true, throwOnIIPAny: true, justAddresses: true, AddressFamily.Unspecified, cancellationToken); 242/// <param name="family">The address family for which IPs should be retrieved. If <see cref="AddressFamily.Unspecified"/>, retrieve all IPs regardless of address family.</param> 273return GetHostEntryCore(hostName, AddressFamily.Unspecified); 278TaskToAsyncResult.Begin(GetHostEntryCoreAsync(hostName, justReturnParsedIp: true, throwOnIIPAny: true, AddressFamily.Unspecified, CancellationToken.None), requestCallback, stateObject); 297IPHostEntry ipHostEntry = GetHostEntryCore(IPAddress.Parse(address), AddressFamily.Unspecified); 310IPHostEntry ipHostEntry = GetHostEntryCore(address, AddressFamily.Unspecified); 328ipHostEntry = GetHostEntryCore(address, AddressFamily.Unspecified); 338ipHostEntry = GetHostEntryCore(hostName, AddressFamily.Unspecified); 347TaskToAsyncResult.Begin(GetHostEntryCoreAsync(hostName, justReturnParsedIp: false, throwOnIIPAny: false, AddressFamily.Unspecified, CancellationToken.None), requestCallback, stateObject); 535Task.FromResult(family == AddressFamily.Unspecified || ipAddress.AddressFamily == family ? new[] { ipAddress } : Array.Empty<IPAddress>()) : 539asyncState = family == AddressFamily.Unspecified ? (object)ipAddress : new KeyValuePair<IPAddress, AddressFamily>(ipAddress, family); 573asyncState = family == AddressFamily.Unspecified ? (object)hostName : new KeyValuePair<string, AddressFamily>(hostName, family); 580string h => GetHostAddressesCore(h, AddressFamily.Unspecified, activity), 582IPAddress a => GetHostAddressesCore(a, AddressFamily.Unspecified, activity), 591string h => GetHostEntryCore(h, AddressFamily.Unspecified, activity), 593IPAddress a => GetHostEntryCore(a, AddressFamily.Unspecified, activity),
System.Net.Primitives (2)
System\Net\DnsEndPoint.cs (2)
15public DnsEndPoint(string host, int port) : this(host, port, AddressFamily.Unspecified) { } 26addressFamily != AddressFamily.Unspecified)
System.Net.Sockets (5)
src\libraries\Common\src\System\Net\Sockets\ProtocolFamily.cs (1)
17Unspecified = AddressFamily.Unspecified,
System\Net\Sockets\Socket.cs (3)
858if (dnsEP.AddressFamily != AddressFamily.Unspecified && !CanTryAddressFamily(dnsEP.AddressFamily)) 2911if (dnsEP.AddressFamily != AddressFamily.Unspecified && !CanTryAddressFamily(dnsEP.AddressFamily)) 3004Socket? attemptSocket = dnsEP.AddressFamily != AddressFamily.Unspecified ? new Socket(dnsEP.AddressFamily, socketType, protocolType) : null;
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
682Debug.Assert(endPoint.AddressFamily == AddressFamily.Unspecified ||