From 6ac5e2f71bbdb38eae47e949e0fd9cf985513d98 Mon Sep 17 00:00:00 2001
From: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Date: Thu, 21 May 2026 20:20:27 -0700
Subject: [PATCH 1/5] remove .net fw remarks
---
xml/System.Net.Cache/HttpCacheAgeControl.xml | 4 +-
.../HttpRequestCacheLevel.xml | 12 +-
.../HttpRequestCachePolicy.xml | 18 +-
xml/System.Net.Cache/RequestCacheLevel.xml | 5 +-
xml/System.Net.Cache/RequestCachePolicy.xml | 13 +-
xml/System.Net.Http/HttpClient.xml | 434 +++++-------------
xml/System.Net.Http/HttpClientHandler.xml | 12 +-
xml/System.Net.Http/HttpResponseMessage.xml | 4 +-
xml/System.Net.Http/SocketsHttpHandler.xml | 2 +-
xml/System.Net.Http/WinHttpHandler.xml | 3 +-
xml/System.Net.Mail/MailMessage.xml | 13 +-
xml/System.Net.Mail/SmtpAccess.xml | 16 +-
xml/System.Net.Mail/SmtpClient.xml | 142 +-----
xml/System.Net.Mail/SmtpPermission.xml | 103 +----
.../SmtpPermissionAttribute.xml | 33 +-
.../NetworkChange.xml | 2 +-
.../NetworkInformationPermission.xml | 103 +----
.../NetworkInformationPermissionAttribute.xml | 41 +-
.../PhysicalAddress.xml | 18 +-
xml/System.Net.NetworkInformation/Ping.xml | 4 -
.../PeerCollaborationPermission.xml | 106 +----
.../PeerCollaborationPermissionAttribute.xml | 26 +-
xml/System.Net.PeerToPeer/PnrpPermission.xml | 131 +-----
.../PnrpPermissionAttribute.xml | 22 +-
.../SslClientAuthenticationOptions.xml | 2 +-
xml/System.Net.Security/SslStream.xml | 19 +-
xml/System.Net.Sockets/IPProtectionLevel.xml | 11 +-
xml/System.Net.Sockets/Socket.xml | 354 +-------------
.../SocketAsyncEventArgs.xml | 6 -
xml/System.Net.Sockets/SocketFlags.xml | 2 +-
xml/System.Net.Sockets/TcpClient.xml | 116 +----
xml/System.Net.Sockets/TcpListener.xml | 63 +--
xml/System.Net.WebSockets/WebSocket.xml | 4 +-
33 files changed, 222 insertions(+), 1622 deletions(-)
diff --git a/xml/System.Net.Cache/HttpCacheAgeControl.xml b/xml/System.Net.Cache/HttpCacheAgeControl.xml
index e37a41f810d..7a342cee19b 100644
--- a/xml/System.Net.Cache/HttpCacheAgeControl.xml
+++ b/xml/System.Net.Cache/HttpCacheAgeControl.xml
@@ -53,7 +53,7 @@
## Examples
The following code example creates a policy based on MaxAgeAndMinFresh.
-
+
:::code language="csharp" source="~/snippets/csharp/System.Net/WebRequest/CachePolicy/example.cs" id="Snippet9":::
]]>
@@ -300,7 +300,7 @@
0
- For internal use only. The Framework will throw an if you try to use this member.
+ For internal use only.An is thrown if you try to use this member.
diff --git a/xml/System.Net.Cache/HttpRequestCacheLevel.xml b/xml/System.Net.Cache/HttpRequestCacheLevel.xml
index eb7c6d38432..b2259c3c3fa 100644
--- a/xml/System.Net.Cache/HttpRequestCacheLevel.xml
+++ b/xml/System.Net.Cache/HttpRequestCacheLevel.xml
@@ -49,25 +49,15 @@
## Remarks
This enumeration is used to set the cache level specified by objects.
- This `BypassCache` value is the default cache behavior specified in the machine configuration file that ships with the .NET Framework. No entries are taken from caches, added to caches, or removed from caches between the client and server.
-
The property is used to get or set the default cache policy for instances. The property is used to get or set the default cache policy for a instance. The property is used to get or set the cache policy for a specific request.
A copy of a resource is only added to the cache if the response stream for the resource is retrieved and read to the end of the stream. So another request for the same resource could use a cached copy, depending on the default cache policy level for this request.
-
-
-## Examples
- The following code example sets the application domain's caching policy to Default.
-
- :::code language="csharp" source="~/snippets/csharp/System.Net/WebRequest/CachePolicy/example.cs" id="Snippet2":::
-
]]>
Cache Management for Network Applications
- RequestCaching Element (Network Settings)
@@ -107,7 +97,7 @@
1
- Satisfies a request by using the server. No entries are taken from caches, added to caches, or removed from caches between the client and server. No entries are taken from caches, added to caches, or removed from caches between the client and server. This is the default cache behavior specified in the machine configuration file that ships with the .NET Framework.
+ Satisfies a request by using the server. No entries are taken from caches, added to caches, or removed from caches between the client and server. No entries are taken from caches, added to caches, or removed from caches between the client and server.
diff --git a/xml/System.Net.Cache/HttpRequestCachePolicy.xml b/xml/System.Net.Cache/HttpRequestCachePolicy.xml
index a82f85978d5..78169a27592 100644
--- a/xml/System.Net.Cache/HttpRequestCachePolicy.xml
+++ b/xml/System.Net.Cache/HttpRequestCachePolicy.xml
@@ -48,19 +48,12 @@
property or the application or machine configuration files. For more information, see [<requestCaching> Element (Network Settings)](/dotnet/framework/configure-apps/file-schema/network/requestcaching-element-network-settings).
+ You can specify a default cache policy for your application by using the property.
You can specify the cache policy for an individual request by using the property.
Caching for Web services is not supported.
-
-
-## Examples
- The following code example creates a default cache policy for the application domain, and overrides it for a request.
-
- :::code language="csharp" source="~/snippets/csharp/System.Net/WebRequest/CachePolicy/example.cs" id="Snippet2":::
-
]]>
Cache Management for Network Applications
@@ -527,14 +520,7 @@
as their cache policy level. The property, if not `null`, determines the cache policy in effect for a request. The default policy for the application domain can be set using the property or by settings in the machine or application configuration files. For more information, see [<requestCaching> Element (Network Settings)](/dotnet/framework/configure-apps/file-schema/network/requestcaching-element-network-settings).
-
-
-
-## Examples
- The following code example demonstrates displaying the value of this property.
-
- :::code language="csharp" source="~/snippets/csharp/System.Net/WebRequest/CachePolicy/example.cs" id="Snippet11":::
+ Applications typically use as their cache policy level. The property, if not `null`, determines the cache policy in effect for a request. The default policy can be set using the property.
]]>
diff --git a/xml/System.Net.Cache/RequestCacheLevel.xml b/xml/System.Net.Cache/RequestCacheLevel.xml
index 0dad264554d..a9983b43f33 100644
--- a/xml/System.Net.Cache/RequestCacheLevel.xml
+++ b/xml/System.Net.Cache/RequestCacheLevel.xml
@@ -49,8 +49,6 @@
## Remarks
Members of this enumeration are used to initialize objects. The current setting for a object is available in the property.
- This value is the default cache behavior specified in the machine configuration file that ships with the .NET Framework. No entries are taken from caches, added to caches, or removed from caches between the client and server.
-
The property is used to get or set the default cache policy for instances. The property is used to get or set the default cache policy for a instances. The property is used to get or set the cache policy for a specific request.
If the cache behavior is `CacheIfAvailable` or `Revalidate`, a copy of a requested resource is only added to the cache if the response stream for the resource is retrieved and read to the end of the stream. With `CacheIfAvailable`, subsequent requests for the same resource would use a cached copy. With `Revalidate`, subsequent requests for the same resource would use a cached copy if the timestamp for the cached resource is the same as the timestamp of the resource on the server.
@@ -67,7 +65,6 @@ A copy of a resource is only added to the cache if the response stream for the r
Cache Management for Network Applications
- RequestCaching Element (Network Settings)
@@ -107,7 +104,7 @@ A copy of a resource is only added to the cache if the response stream for the r
1
- Satisfies a request by using the server. No entries are taken from caches, added to caches, or removed from caches between the client and server. This is the default cache behavior specified in the machine configuration file that ships with the .NET Framework.
+ Satisfies a request by using the server. No entries are taken from caches, added to caches, or removed from caches between the client and server.
diff --git a/xml/System.Net.Cache/RequestCachePolicy.xml b/xml/System.Net.Cache/RequestCachePolicy.xml
index d59afeaf0e9..61a85096d39 100644
--- a/xml/System.Net.Cache/RequestCachePolicy.xml
+++ b/xml/System.Net.Cache/RequestCachePolicy.xml
@@ -48,14 +48,12 @@
property or the application or machine configuration files. For more information, see [<requestCaching> Element (Network Settings)](/dotnet/framework/configure-apps/file-schema/network/requestcaching-element-network-settings).
+ You can specify a default cache policy for your application by using the property.
You can specify the cache policy for an individual request by using the property.
Caching for Web services is not supported.
-
-
## Examples
The following code example creates a policy with set to , and uses it to set the cache policy of a .
@@ -231,14 +229,7 @@
## Remarks
Applications typically use as their cache policy level. Using the level, the effective cache policy is determined by the current cache policy and the age of the content in the cache. The property, if not `null`, determines the cache policy in effect for a request.
- The default policy for the application domain can be set using the or the application or machine configuration file. For more information, see [<requestCaching> Element (Network Settings)](/dotnet/framework/configure-apps/file-schema/network/requestcaching-element-network-settings).
-
-
-
-## Examples
- The following code example creates a policy and sends a request.
-
- :::code language="csharp" source="~/snippets/csharp/System.Net/WebRequest/CachePolicy/example.cs" id="Snippet13":::
+You can set the default policy using the property.
]]>
diff --git a/xml/System.Net.Http/HttpClient.xml b/xml/System.Net.Http/HttpClient.xml
index a1003059876..4e92e3056b1 100644
--- a/xml/System.Net.Http/HttpClient.xml
+++ b/xml/System.Net.Http/HttpClient.xml
@@ -589,11 +589,7 @@ This property has no effect on any of the object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations:
->
-> - that nests a is thrown on .NET 5 and later versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - is thrown on all applicable .NET Framework versions.
+> In case of timeout, that nests a is thrown.
]]>
The request message was already sent by the instance.
@@ -605,12 +601,8 @@ The is not an absolute URI.
-or-
is not set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by .
-
--or-
-
-.NET Framework only: The request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by .
+ The request failed due to timeout.
@@ -666,11 +658,7 @@ The is not an absolute URI.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations:
->
-> - that nests a is thrown on .NET 5 and later versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - is thrown on all applicable .NET Framework versions.
+> In case of timeout, that nests a is thrown.
]]>
The request message was already sent by the instance.
@@ -682,12 +670,8 @@ The is not an absolute URI.
-or-
is not set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: the request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
+ The request failed due to timeout.
@@ -749,11 +733,7 @@ The is not an absolute URI.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
->
-> - that nests a is thrown on .NET 5 and later versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - is thrown on all applicable .NET Framework versions.
+> In case of timeout, that nests a is thrown.
]]>
The request message was already sent by the instance.
@@ -765,16 +745,12 @@ The is not an absolute URI.
-or-
is not set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: the request timed out.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
The cancellation token was canceled. This exception is stored into the returned task.
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -832,11 +808,7 @@ The is not an absolute URI.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, that nests a is thrown.
]]>
The request message was already sent by the instance.
@@ -848,16 +820,12 @@ The is not an absolute URI.
-or-
is not set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: the request timed out.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
The cancellation token was canceled. This exception is stored into the returned task.
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -988,19 +956,12 @@ The is not an absolute URI.
This operation doesn't block. The returned object will complete after the whole response (including content) is read. The behavior is the same as if has been explicitly specified.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: the request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
+ The request failed due to timeout.
The provided request URI is not valid relative or absolute URI.
@@ -1057,19 +1018,12 @@ The is not an absolute URI.
This operation doesn't block. The returned object will complete after the whole response (including content) is read. The behavior is the same as if has been explicitly specified.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: the request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
+ The request failed due to timeout.
@@ -1131,15 +1085,12 @@ The is not an absolute URI.
This operation doesn't block. The returned object will complete based on the `completionOption` parameter after the part or all of the response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
The request failed due to an underlying issue such as network connectivity, DNS failure, server certificate validation or timeout.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+ The request failed due to timeout.
The provided request URI is not valid relative or absolute URI.
@@ -1202,24 +1153,17 @@ The is not an absolute URI.
This operation doesn't block. The returned object will complete after the whole response (including content) is read. The behavior is the same as if has been explicitly specified.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: the request timed out.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
The provided request URI is not valid relative or absolute URI.
The cancellation token was canceled. This exception is stored into the returned task.
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -1277,19 +1221,12 @@ The is not an absolute URI.
This operation doesn't block. The returned object will complete based on the `completionOption` parameter after the part or all of the response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: the request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
+ The request failed due to timeout.
@@ -1347,23 +1284,16 @@ The is not an absolute URI.
This operation doesn't block. The returned object will complete after the whole response (including content) is read. The behavior is the same as if has been explicitly specified.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- TThe request failed due to an issue getting an HTTP response such as network connectivity, DNS failure or server certificate validation. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: the request timed out.
+ TThe request failed due to an issue getting an HTTP response such as network connectivity, DNS failure or server certificate validation. On .NET 8 and later versions, the reason is indicated by
The cancellation token was canceled. This exception is stored into the returned task.
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -1427,24 +1357,17 @@ The is not an absolute URI.
This operation doesn't block. The returned object will complete based on the `completionOption` parameter after the part or all of the response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: the request timed out.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
The provided request URI is not valid relative or absolute URI.
The cancellation token was canceled. This exception is stored into the returned task.
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -1504,23 +1427,16 @@ The is not an absolute URI.
This operation doesn't block. The returned object will complete based on the `completionOption` parameter after the part or all of the response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: the request timed out.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
The cancellation token was canceled. This exception is stored into the returned task.
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -1601,10 +1517,7 @@ The is not an absolute URI.
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
@@ -1612,12 +1525,8 @@ In some scenarios, you might need more control over which status codes are consi
-or-
-The response status code was outside of the range of 200-299 (which indicate success according to the standard).
-
--or-
-
-.NET Framework only: The request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+The response status code was outside of the range of 200-299 (which indicate success according to the standard).
+ The request failed due to timeout.
The provided request URI is not valid relative or absolute URI.
@@ -1676,10 +1585,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout:
-> - .NET Framework throws a .
-> - .NET Core throws a without any inner exception.
-> - .NET 5 and later versions throw a that nests a .
+> In case of a timeout, that nests a is thrown.
]]>
@@ -1688,12 +1594,8 @@ In some scenarios, you might need more control over which status codes are consi
-or-
-The response status code was outside of the range of 200-299 (which indicate success according to the standard).
-
--or-
-
-.NET Framework only: The request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+The response status code was outside of the range of 200-299 (which indicate success according to the standard).
+ The request failed due to timeout.
@@ -1749,10 +1651,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout:
-> - .NET Framework throws a .
-> - .NET Core throws a without any inner exception.
-> - .NET 5 and later versions throw a that nests a .
+> In case of a timeout, that nests a is thrown.
]]>
@@ -1766,7 +1665,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -1818,10 +1717,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout:
-> - .NET Framework throws a .
-> - .NET Core throws a without any inner exception.
-> - .NET 5 and later versions throw a that nests a .
+> In case of a timeout, that nests a is thrown.
]]>
@@ -1835,7 +1731,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -1916,10 +1812,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout:
-> - .NET Framework throws a .
-> - .NET Core throws a without any inner exception.
-> - .NET 5 and later versions throw a that nests a .
+> In case of a timeout, that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
@@ -1927,12 +1820,8 @@ In some scenarios, you might need more control over which status codes are consi
-or-
-The response status code was outside of the range of 200-299 (which indicate success according to the standard).
-
--or-
-
-.NET Framework only: The request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+The response status code was outside of the range of 200-299 (which indicate success according to the standard).
+ The request failed due to timeout.
The provided request URI is not valid relative or absolute URI.
@@ -1991,10 +1880,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout:
-> - .NET Framework throws a .
-> - .NET Core throws a without any inner exception.
-> - .NET 5 and later versions throw a that nests a .
+> In case of a timeout, that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
@@ -2002,12 +1888,8 @@ In some scenarios, you might need more control over which status codes are consi
-or-
-The response status code was outside of the range of 200-299 (which indicate success according to the standard).
-
--or-
-
-.NET Framework only: The request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+The response status code was outside of the range of 200-299 (which indicate success according to the standard).
+ The request failed due to timeout.
@@ -2063,17 +1945,14 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout:
-> - .NET Framework throws a .
-> - .NET Core throws an without any inner exception.
-> - .NET 5 and later versions throw an that nests a .
+> In case of a timeout: an that nests a is thrown.
]]>
The cancellation token was canceled. This exception is stored into the returned task.
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
The is .
The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
@@ -2132,10 +2011,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout:
-> - .NET Framework throws a .
-> - .NET Core throws a without any inner exception.
-> - .NET 5 and later versions throw a that nests a .
+> In case of a timeout, an that nests a is thrown.
]]>
The is .
@@ -2148,7 +2024,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -2229,10 +2105,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout:
-> - .NET Framework throws a .
-> - .NET Core throws a without any inner exception.
-> - .NET 5 and later versions throw a that nests a .
+> In case of a timeout, an that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
@@ -2240,12 +2113,8 @@ In some scenarios, you might need more control over which status codes are consi
-or-
-The response status code was outside of the range of 200-299 (which indicate success according to the standard).
-
--or-
-
-.NET Framework only: The request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+The response status code was outside of the range of 200-299 (which indicate success according to the standard).
+ The request failed due to timeout.
The provided request URI is not valid relative or absolute URI.
@@ -2304,10 +2173,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout:
-> - .NET Framework throws a .
-> - .NET Core throws a without any inner exception.
-> - .NET 5 and later versions throw a that nests a .
+> In case of a timeout, an that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
@@ -2315,12 +2181,8 @@ In some scenarios, you might need more control over which status codes are consi
-or-
-The response status code was outside of the range of 200-299 (which indicate success according to the standard).
-
--or-
-
-.NET Framework only: The request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+The response status code was outside of the range of 200-299 (which indicate success according to the standard).
+ The request failed due to timeout.
@@ -2376,10 +2238,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout:
-> - .NET Framework throws a .
-> - .NET Core throws a without any inner exception.
-> - .NET 5 and later versions throw a that nests a .
+> In case of a timeout, an that nests a is thrown.
]]>
The is .
@@ -2393,7 +2252,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -2445,10 +2304,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout:
-> - .NET Framework throws a .
-> - .NET Core throws a without any inner exception.
-> - .NET 5 and later versions throw a that nests a .
+> In case of a timeout, an that nests a is thrown.
]]>
The is .
@@ -2461,7 +2317,7 @@ The response status code was outside of the range of 200-299 (which indicate suc
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -2843,19 +2699,12 @@ The size specified is greater than the maximum allowed buffer size.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, an that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: The request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
+ The request failed due to timeout.
The provided request URI is not valid relative or absolute URI.
@@ -2914,19 +2763,12 @@ The size specified is greater than the maximum allowed buffer size.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, an that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: The request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
+ The request failed due to timeout.
@@ -2993,24 +2835,17 @@ The size specified is greater than the maximum allowed buffer size.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, an that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: The request timed out.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
The provided request URI is not valid relative or absolute URI.
The cancellation token was canceled. This exception is stored into the returned task.
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -3070,23 +2905,16 @@ The size specified is greater than the maximum allowed buffer size.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, an that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: The request timed out.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
The cancellation token was canceled. This exception is stored into the returned task.
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -3170,19 +2998,12 @@ The size specified is greater than the maximum allowed buffer size.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, an that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: The request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
+ The request failed due to timeout.
The provided request URI is not valid relative or absolute URI.
@@ -3241,19 +3062,12 @@ The size specified is greater than the maximum allowed buffer size.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, an that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: The request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
+ The request failed due to timeout.
@@ -3320,24 +3134,17 @@ The size specified is greater than the maximum allowed buffer size.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, an that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: The request timed out.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
The provided request URI is not valid relative or absolute URI.
The cancellation token was canceled. This exception is stored into the returned task.
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -3397,23 +3204,16 @@ The size specified is greater than the maximum allowed buffer size.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, an that nests a is thrown.
]]>
The is not an absolute URI and isn't set.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: The request timed out.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
The cancellation token was canceled. This exception is stored into the returned task.
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -3618,7 +3418,7 @@ The custom does not override
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -3691,7 +3491,7 @@ The custom does not override
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -3758,10 +3558,7 @@ The custom does not override
This operation doesn't block. The returned object will complete once the entire response including content is read. The behavior is the same as if has been explicitly specified.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, an that nests a is thrown.
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -3769,12 +3566,8 @@ This method stores in the task it returns all non-usage exceptions that the meth
The is .
The request message was already sent by the instance.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: The request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
+ The request failed due to timeout.
@@ -3824,10 +3617,7 @@ This method stores in the task it returns all non-usage exceptions that the meth
This operation doesn't block. Depending on the value of the `completionOption` parameter, the returned object will complete as soon as a response is available or the entire response including content is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, an that nests a is thrown.
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -3835,12 +3625,8 @@ This method stores in the task it returns all non-usage exceptions that the meth
The is .
The request message was already sent by the instance.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: The request timed out.
- .NET Core and .NET 5 and later only: The request failed due to timeout.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
+ The request failed due to timeout.
@@ -3890,10 +3676,7 @@ This method stores in the task it returns all non-usage exceptions that the meth
This operation doesn't block. The returned object will complete once the entire response including content is read. The behavior is the same as if has been explicitly specified.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, an that nests a is thrown.
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -3901,16 +3684,12 @@ This method stores in the task it returns all non-usage exceptions that the meth
The is .
The request message was already sent by the instance.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: The request timed out.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
The cancellation token was canceled. This exception is stored into the returned task.
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
@@ -3962,10 +3741,7 @@ This method stores in the task it returns all non-usage exceptions that the meth
This operation doesn't block. Depending on the value of the `completionOption` parameter, the returned object will complete as soon as a response is available or the entire response including content is read.
> [!NOTE]
-> In case of timeout, different exceptions are thrown on different .NET implementations.
-> - is thrown on all applicable .NET Framework versions.
-> - without any inner exception is thrown on all applicable .NET Core versions.
-> - that nests a is thrown on .NET 5 and later versions.
+> In case of timeout, an that nests a is thrown.
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -3973,16 +3749,12 @@ This method stores in the task it returns all non-usage exceptions that the meth
The is .
The request message was already sent by the instance.
- The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
-
--or-
-
-.NET Framework only: the request timed out.
+ The request failed due to an issue getting a valid HTTP response, such as network connectivity failure, DNS failure, server certificate validation error, or invalid server response. On .NET 8 and later versions, the reason is indicated by
The cancellation token was canceled. This exception is stored into the returned task.
-or-
-.NET Core and .NET 5 and later only: The request failed due to timeout.
+The request failed due to timeout.
diff --git a/xml/System.Net.Http/HttpClientHandler.xml b/xml/System.Net.Http/HttpClientHandler.xml
index 2cac07b770e..7bb75c963e0 100644
--- a/xml/System.Net.Http/HttpClientHandler.xml
+++ b/xml/System.Net.Http/HttpClientHandler.xml
@@ -129,15 +129,14 @@
## Remarks
Set to `true` if you want the handler to automatically follow HTTP redirection headers to the new location of the resource. The maximum number of redirections to follow is set by the property.
- If is set to `false`, all HTTP responses with an HTTP status code from 300 to 399 are returned to the application.
+ If is set to `false`, all HTTP responses with an HTTP status code from 300 to 399 are returned to the application.
The Authorization header is cleared on auto-redirects and the handler automatically tries to re-authenticate to the redirected location. No other headers are cleared. In practice, this means that an application can't put custom authentication information into the Authorization header if it is possible to encounter redirection. Instead, the application must implement and register a custom authentication module.
If you are using cookies by specifically adding them to the collection, these are not cleared when a redirect is followed, as the handler has no way of knowing what domain a cookie is allowed for. If you want to mimic browser behavior, use the class which allows you to specify the target domain for a cookie.
> [!NOTE]
-> On .NET Core and .NET 5 and later versions, setting to `true` **does not enable** automatic redirection to an HTTP URI from an HTTPS URI.
-> Such (secure to insecure) redirections are only followed on .NET Framework.
+> Setting to `true` **does not enable** automatic redirection to an HTTP URI from an HTTPS URI.
]]>
@@ -192,9 +191,6 @@
Setting automatic decompression to anything other than will result in adding `Accept-Encoding` header with the set values into every outgoing .
-
-For the .NET Framework 4.x `System.Net.Http` binary in the Global Assembly Cache (GAC), the default value is .
-
]]>
@@ -241,7 +237,6 @@ For the .NET Framework 4.x `System.Net.Http` binary in the Global Assembly Cache
if the certificate revocation list is checked; otherwise, .
To be added.
- .NET Framework 4.7.1 only: This property is not implemented.
@@ -330,7 +325,7 @@ For the .NET Framework 4.x `System.Net.Http` binary in the Global Assembly Cache
## Remarks
-On .NET Core, the key usage attribute on the X509 certificate, if present, is required to have the value "Digital Signature" in order to be used when sending the request.
+The key usage attribute on the X509 certificate, if present, is required to have the value "Digital Signature" in order to be used when sending the request.
]]>
@@ -1210,7 +1205,6 @@ handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousA
Gets or sets the TLS/SSL protocols used by the objects managed by the HttpClientHandler object.
A bitwise combination of the enumeration values that specify the TLS/SSL protocols.
To be added.
- .NET Framework 4.7.1 only: This property is not implemented.
diff --git a/xml/System.Net.Http/HttpResponseMessage.xml b/xml/System.Net.Http/HttpResponseMessage.xml
index 6fe1503ce54..8f3687ffcf1 100644
--- a/xml/System.Net.Http/HttpResponseMessage.xml
+++ b/xml/System.Net.Http/HttpResponseMessage.xml
@@ -354,10 +354,8 @@ When the `disposing` parameter is `true`, this method releases all resources hel
## Remarks
The method throws an if is outside of the range 200-299 (the range of status codes indicating success according to the standard).
-
- In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
- In .NET Framework, if the is not `null`, this method also calls to free managed and unmanaged resources. Starting with .NET Core 3.0, the content is not disposed.
+ In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
]]>
diff --git a/xml/System.Net.Http/SocketsHttpHandler.xml b/xml/System.Net.Http/SocketsHttpHandler.xml
index 0b08b1a988a..16252503ce1 100644
--- a/xml/System.Net.Http/SocketsHttpHandler.xml
+++ b/xml/System.Net.Http/SocketsHttpHandler.xml
@@ -949,7 +949,7 @@ For example, if the value is 64, then 65,536 bytes are allowed for the maximum r
Gets or sets how long a connection can be idle in the pool to be considered reusable.
- The maximum idle time for a connection in the pool. The default value for this property is 1 minute in .NET 6 and later versions; the default value is 2 minutes in .NET Core and .NET 5
+ The maximum idle time for a connection in the pool. The default value is 1 minute.
To be added.
The value specified is less than and is not .
An operation has already been started on the current instance.
diff --git a/xml/System.Net.Http/WinHttpHandler.xml b/xml/System.Net.Http/WinHttpHandler.xml
index b31b069c32f..3134067bd77 100644
--- a/xml/System.Net.Http/WinHttpHandler.xml
+++ b/xml/System.Net.Http/WinHttpHandler.xml
@@ -60,8 +60,7 @@ Starting in .NET 5, is no longer included
Starting with version 6.0.0, supports trailing headers, also known as trailers ([RFC 7230 - 4.1.2. Chunked Trailer Part](https://tools.ietf.org/html/rfc7230#section-4.1.2)).
-- On .NET Standard 2.1 and .NET 8 or later, trailers are added to .
-- On .NET Framework, trailers are added to a well-known property in on the request object corresponding to the response (). The name of the property is `__ResponseTrailers`, the type of the property value is .
+Trailers are added to .
Trailer support is implemented via the `WINHTTP_QUERY_FLAG_TRAILERS` [Query Info Flag](/windows/win32/winhttp/query-info-flags) which has been introduced in Windows 11, version 21H2 (10.0; Build 22000). On Windows systems where `WINHTTP_QUERY_FLAG_TRAILERS` is unsupported, trailers are ignored.
diff --git a/xml/System.Net.Mail/MailMessage.xml b/xml/System.Net.Mail/MailMessage.xml
index 235f7fde750..7386748805a 100644
--- a/xml/System.Net.Mail/MailMessage.xml
+++ b/xml/System.Net.Mail/MailMessage.xml
@@ -162,14 +162,7 @@
Initializes an empty instance of the class.
-
-
-
+ To be added.
@@ -691,9 +684,7 @@
## Remarks
The value specified for the property sets the character set field in the Content-Type header. The default character set is `"us-ascii"`.
- If you set the property to , , or , the Framework selects a of for this .
-
-
+ If you set the property to , , or , .NET selects a of for this .
## Examples
The following code example demonstrates creating a mail message that uses UTF8 encoding.
diff --git a/xml/System.Net.Mail/SmtpAccess.xml b/xml/System.Net.Mail/SmtpAccess.xml
index 342a6fa327e..95082543b08 100644
--- a/xml/System.Net.Mail/SmtpAccess.xml
+++ b/xml/System.Net.Mail/SmtpAccess.xml
@@ -36,21 +36,7 @@
Specifies the level of access allowed to a Simple Mail Transport Protocol (SMTP) server.
-
- enumeration is used by the and classes to specify a level of access to an SMTP host computer. The class demands an when sending electronic mail to the SMTP host for delivery.
-
-
-
-## Examples
- The following code example uses the enumeration to create a permission object.
-
- :::code language="csharp" source="~/snippets/csharp/System.Net.Mail/SmtpAccess/Overview/mailpermissions.cs" id="Snippet1":::
-
- ]]>
-
+ To be added.
diff --git a/xml/System.Net.Mail/SmtpClient.xml b/xml/System.Net.Mail/SmtpClient.xml
index 70e41926ae6..9e65fa7273b 100644
--- a/xml/System.Net.Mail/SmtpClient.xml
+++ b/xml/System.Net.Mail/SmtpClient.xml
@@ -66,12 +66,6 @@ The `SmtpClient` class is used to send email to an SMTP server for delivery. The
> [!IMPORTANT]
> We don't recommend that you use the `SmtpClient` class for new development because `SmtpClient` doesn't support many modern protocols. Use [MailKit](https://github.com/jstedfast/MailKit) or other libraries instead. For more information, see [SmtpClient shouldn't be used](https://github.com/dotnet/platform-compat/blob/master/docs/DE0005.md).
-The `SmtpClient` class is:
-
-- Included in .NET Standard 2.0 and later versions and therefore must be part of any .NET implementation that supports those versions.
-- Present and can be used in .NET Framework 4 through .NET Framework 4.8.
-- Usable in .NET (Core), but its use isn't recommended.
-
The classes shown in the following table are used to construct email messages that can be sent using .
| Class | Description |
@@ -90,7 +84,7 @@ The classes shown in the following table are used to construct email messages th
To include an attachment with an email message, first create the attachment by using the class, and then add it to the message by using the property. Depending on the email reader used by the recipients and the file type of the attachment, some recipients might not be able to read the attachment. For clients that cannot display the attachment in its original form, you can specify alternate views by using the property.
- In .NET Framework, you can use the application or machine configuration files to specify default host, port, and credentials values for all objects. For more information, see [<mailSettings> Element (Network Settings)](/dotnet/framework/configure-apps/file-schema/network/mailsettings-element-network-settings). .NET Core does not support setting defaults. As a workaround, you must set the relevant properties on directly.
+To specify host, port, and credentials values for all objects, set the relevant properties on directly.
To send the email message and block while waiting for the email to be transmitted to the SMTP server, use one of the synchronous methods. To allow your program's main thread to continue executing while the email is transmitted, use one of the asynchronous methods. The event is raised when a operation completes. To receive this event, you must add a delegate to . The delegate must reference a callback method that handles notification of events. To cancel an asynchronous email transmission, use the method.
@@ -117,10 +111,6 @@ The following code example demonstrates sending an email message asynchronously.
]]>
- Network Programming in the .NET Framework
- Network Programming Samples
- Network Tracing in the .NET Framework
- Security in Network Programming
@@ -166,24 +156,8 @@ The following code example demonstrates sending an email message asynchronously.
- Initializes a new instance of the class by using configuration file settings.
-
- , , and properties for the new by using the settings in the application or machine configuration files. For more information, see [<mailSettings> Element (Network Settings)](/dotnet/framework/configure-apps/file-schema/network/mailsettings-element-network-settings).
-
-
-
-## Examples
- The following code example demonstrates sending an email message.
-
- :::code language="csharp" source="~/snippets/csharp/System.Net.Mail/Attachment/Overview/mail.cs" id="Snippet4":::
-
- For an example of the \ node in the application or machine configuration file, see [<mailSettings> Element (Network Settings)](/dotnet/framework/configure-apps/file-schema/network/mailsettings-element-network-settings).
-
- ]]>
-
+ Initializes a new instance of the class using the default port.
+ To be added.
@@ -225,23 +199,7 @@ The following code example demonstrates sending an email message asynchronously.
A that contains the name or IP address of the host computer used for SMTP transactions.
Initializes a new instance of the class that sends email by using the specified SMTP server.
-
- property. The and properties are initialized by using the settings in the application or machine configuration files. If `host` is `null` or equal to , is initialized using the settings in the application or machine configuration files.
-
- For more information about using the application and machine configuration files, see [<mailSettings> Element (Network Settings)](/dotnet/framework/configure-apps/file-schema/network/mailsettings-element-network-settings). If information is specified using constructors or properties, this information overrides the configuration file settings.
-
-
-
-## Examples
- The following code example demonstrates calling this constructor.
-
- :::code language="csharp" source="~/snippets/csharp/System.Net.Mail/Attachment/Overview/mail.cs" id="Snippet3":::
-
- ]]>
-
+ To be added.
@@ -285,23 +243,7 @@ The following code example demonstrates sending an email message asynchronously.
A that contains the name or IP address of the host used for SMTP transactions.
An greater than zero that contains the port to be used on .
Initializes a new instance of the class that sends email by using the specified SMTP server and port.
-
- and properties, respectively. If `host` is `null` or equal to , is initialized using the settings in the application or machine configuration files. If `port` is zero, is initialized using the settings in the application or machine configuration files. The property is initialized using the settings in the application or machine configuration files.
-
- For more information about using the application and machine configuration files, see [<mailSettings> Element (Network Settings)](/dotnet/framework/configure-apps/file-schema/network/mailsettings-element-network-settings). If information is specified using constructors or properties, this information overrides the configuration file settings.
-
-
-
-## Examples
- The following code example demonstrates calling this constructor.
-
- :::code language="csharp" source="~/snippets/csharp/System.Net.Mail/Attachment/Overview/mail.cs" id="Snippet1":::
-
- ]]>
-
+ To be added.
cannot be less than zero.
@@ -348,7 +290,7 @@ The following code example demonstrates sending an email message asynchronously.
System.Security.Cryptography.X509Certificates.X509CertificateCollection
- Specify which certificates should be used to establish the Secure Sockets Layer (SSL) connection.
+ Gets the certificates that should be used to establish the Secure Sockets Layer (SSL) connection.
An , holding one or more client certificates. The default value is derived from the mail configuration attributes in a configuration file.
[!NOTE]
-> The Framework caches SSL sessions as they are created and attempts to reuse a cached session for a new request, if possible. When attempting to reuse an SSL session, the Framework uses the first element of (if there is one), or tries to reuse an anonymous sessions if is empty.
-
-
+> .NET caches SSL sessions as they are created and attempts to reuse a cached session for a new request, if possible. When attempting to reuse an SSL session, .NET uses the first element of (if there is one), or tries to reuse an anonymous sessions if is empty.
## Examples
The following code example establishes an SSL connection with the SMTP server and uses the connection to send an email.
@@ -368,7 +308,6 @@ The following code example demonstrates sending an email message asynchronously.
]]>
- MailSettings Element (Network Settings)
@@ -409,19 +348,15 @@ The following code example demonstrates sending an email message asynchronously.
Gets or sets the credentials used to authenticate the sender.
- An that represents the credentials to use for authentication; or if no credentials have been specified.
+ The credentials to use for authentication; or if no credentials have been specified.
to `true` instead of setting this property. If the property is set to `false,` then the value set in the property will be used for the credentials when connecting to the server. If the property is set to `false` and the property has not been set, then mail is sent to the server anonymously.
- Credentials information can also be specified using the application and machine configuration files. For more information, see [<mailSettings> Element (Network Settings)](/dotnet/framework/configure-apps/file-schema/network/mailsettings-element-network-settings). If information is specified using the property, this information overrides the configuration file settings.
-
> [!CAUTION]
-> If you provide credentials for basic authentication, they are sent to the server in clear text. This can present a security issue because your credentials can be seen, and then used by others.
-
-
+> If you provide credentials for basic authentication, they are sent to the server in clear text. This can present a security issue because your credentials can be seen and used by others.
## Examples
The following code example demonstrates setting the credentials used to send an email.
@@ -527,8 +462,6 @@ The following code example demonstrates sending an email message asynchronously.
]]>
- <mailSettings> Element (Network Settings)
- <smtp> Element (Network Settings)
@@ -755,9 +688,6 @@ The following code example demonstrates sending an email message asynchronously.
]]>
- <mailSettings> Element (Network Settings)
- <smtp> Element (Network Settings)
- <network> Element (Network Settings)
@@ -799,30 +729,11 @@ The following code example demonstrates sending an email message asynchronously.
Gets or sets the name or IP address of the host used for SMTP transactions.
A that contains the name or IP address of the computer to use for SMTP transactions.
-
- property can also be set using constructors or the application or machine configuration file. For more information, see [<mailSettings> Element (Network Settings)](/dotnet/framework/configure-apps/file-schema/network/mailsettings-element-network-settings).
-
- If information is specified using this property, this information overrides the configuration file settings.
-
-
-
-## Examples
- The following code example demonstrates sending an email message by using the host and port specified in an application configuration file.
-
- :::code language="csharp" source="~/snippets/csharp/System.Net.Mail/Attachment/Overview/mail.cs" id="Snippet7":::
-
- ]]>
-
+ To be added.
The value specified for a set operation is .
The value specified for a set operation is equal to ("").
You cannot change the value of this property when an email is being sent.
- mailSettings for system.net
- <smtp> Element (Network Settings)
- <network> Element (Network Settings)
@@ -930,8 +841,6 @@ The following code example demonstrates sending an email message asynchronously.
]]>
- <mailSettings> Element (Network Settings)
- <smtp> Element (Network Settings)
@@ -972,27 +881,10 @@ The following code example demonstrates sending an email message asynchronously.
Gets or sets the port used for SMTP transactions.
An that contains the port number on the SMTP host. The default value is 25.
-
- property can also be set using constructors or the application or machine configuration file. For more information about using configuration files, see [<mailSettings> Element (Network Settings)](/dotnet/framework/configure-apps/file-schema/network/mailsettings-element-network-settings). If information is specified using this property, this information overrides the configuration file settings.
-
-
-
-## Examples
- The following code example demonstrates sending an email message by using the host and port specified in an application configuration file.
-
- :::code language="csharp" source="~/snippets/csharp/System.Net.Mail/Attachment/Overview/mail.cs" id="Snippet7":::
-
- ]]>
-
+ To be added.
The value specified for a set operation is less than or equal to zero.
You cannot change the value of this property when an email is being sent.
- mailSettings for system.net
- <smtp> Element (Network Settings)
- <network> Element (Network Settings)
@@ -2138,7 +2030,6 @@ The following code example demonstrates sending an email message asynchronously.
-or-
is zero.
- connectionManagement Element (Network Settings)
Managing Connections
@@ -2192,9 +2083,6 @@ The following code example demonstrates sending an email message asynchronously.
]]>
Integrated Windows Authentication with Extended Protection
- <mailSettings> Element (Network Settings)
- <smtp> Element (Network Settings)
- <network> Element (Network Settings)
@@ -2292,7 +2180,7 @@ The following code example demonstrates sending an email message asynchronously.
System.Boolean
- Gets or sets a value that controls whether the are sent with requests.
+ Gets or sets a value that indicates whether the are sent with requests.
if the default credentials are used; otherwise . The default value is .
@@ -2301,14 +2189,10 @@ The following code example demonstrates sending an email message asynchronously.
## Remarks
Some SMTP servers require that the client be authenticated before the server sends email on its behalf. Set this property to `true` when this object should, if requested by the server, authenticate using the default credentials of the currently logged on user. For client applications, this is the desired behavior in most scenarios.
- Credentials information can also be specified using the application and machine configuration files. For more information, see [<mailSettings> Element (Network Settings)](/dotnet/framework/configure-apps/file-schema/network/mailsettings-element-network-settings).
-
If the property is set to `false,` then the value set in the property will be used for the credentials when connecting to the server. If the property is set to `false` and the property has not been set, then mail is sent to the server anonymously.
> [!CAUTION]
-> If you provide credentials for basic authentication, they are sent to the server in clear text. This can present a security issue because your credentials can be seen, and then used by others.
-
-
+> If you provide credentials for basic authentication, they are sent to the server in clear text. This can present a security issue because your credentials can be seen and used by others.
## Examples
The following code example demonstrates using this property.
diff --git a/xml/System.Net.Mail/SmtpPermission.xml b/xml/System.Net.Mail/SmtpPermission.xml
index 5c1ad293276..fbe36f304f9 100644
--- a/xml/System.Net.Mail/SmtpPermission.xml
+++ b/xml/System.Net.Mail/SmtpPermission.xml
@@ -49,10 +49,6 @@
[!INCLUDE[cas-deprecated](~/includes/cas-deprecated.md)]
- The and classes control access to SMTP host computers. The class demands an when sending electronic mail to the SMTP host for delivery.
-
- The enumeration specifies the level of access controlled by an instance of this permission.
-
]]>
@@ -98,14 +94,7 @@
if the new permission is unrestricted; otherwise, .
Initializes a new instance of the class with the specified state.
-
- access to SMTP servers. If unrestricted is `false`, the permission controls access.
-
- ]]>
-
+ To be added.
@@ -139,14 +128,7 @@
One of the values.
Initializes a new instance of the class using the specified access level.
-
-
-
+ To be added.
@@ -180,14 +162,7 @@
One of the values.
Initializes a new instance of the class using the specified permission state value.
-
-
-
+ To be added.
@@ -258,14 +233,7 @@
One of the values.
Adds the specified access level value to the permission.
-
-
-
+ To be added.
@@ -300,14 +268,7 @@
Creates and returns an identical copy of the current permission.
An that is identical to the current permission.
-
-
-
+ To be added.
@@ -344,14 +305,7 @@
The XML encoding to use to set the state of the current permission.
Sets the state of the permission using the specified XML encoding.
-
-
-
+ To be added.
does not describe an object.
@@ -397,14 +351,7 @@
An to intersect with the current permission. It must be of the same type as the current permission.
Creates and returns a permission that is the intersection of the current permission and the specified permission.
An that represents the intersection of the current permission and the specified permission. Returns if the intersection is empty or is .
-
-
-
+ To be added.
is not an .
@@ -445,14 +392,7 @@
Returns a value indicating whether the current permission is a subset of the specified permission.
if the current permission is a subset of the specified permission; otherwise, .
-
-
-
+ To be added.
is not an .
@@ -493,14 +433,7 @@
Returns a value indicating whether the current permission is unrestricted.
if the current permission is unrestricted; otherwise, .
-
-
-
+ To be added.
@@ -535,14 +468,7 @@
Creates an XML encoding of the state of the permission.
A that contains an XML encoding of the current permission.
-
-
-
+ To be added.
@@ -580,14 +506,7 @@
An to combine with the current permission.
Creates a permission that is the union of the current permission and the specified permission.
A new permission that represents the union of the current permission and the specified permission.
-
- method returns a permission that represents all the states represented by both the current permission and the specified permission. Any demand that passes either permission passes their union.
-
- ]]>
-
+ To be added.
is not an .
diff --git a/xml/System.Net.Mail/SmtpPermissionAttribute.xml b/xml/System.Net.Mail/SmtpPermissionAttribute.xml
index b157c7c20c8..8eb0109d39f 100644
--- a/xml/System.Net.Mail/SmtpPermissionAttribute.xml
+++ b/xml/System.Net.Mail/SmtpPermissionAttribute.xml
@@ -49,10 +49,6 @@
[!INCLUDE[cas-deprecated](~/includes/cas-deprecated.md)]
- The and classes control access to SMTP host computers. The class demands an when sending electronic mail to the SMTP host for delivery.
-
- The enumeration specifies the level of access controlled by an instance of this permission.
-
]]>
@@ -88,14 +84,7 @@
One of the values that specifies the permission behavior.
Initializes a new instance of the class.
-
-
-
+ To be added.
is not a valid .
@@ -131,14 +120,7 @@
Gets or sets the level of access to SMTP servers controlled by the attribute.
A value. Valid values are "Connect" and "None".
-
- method will throw an when called by the system.
-
- ]]>
-
+ To be added.
@@ -173,16 +155,7 @@
Creates a permission object that can be stored with the in an assembly's metadata.
An instance.
-
-
-
+ To be added.
diff --git a/xml/System.Net.NetworkInformation/NetworkChange.xml b/xml/System.Net.NetworkInformation/NetworkChange.xml
index 43297d0dc72..dfd931921f5 100644
--- a/xml/System.Net.NetworkInformation/NetworkChange.xml
+++ b/xml/System.Net.NetworkInformation/NetworkChange.xml
@@ -67,7 +67,7 @@
## Examples
The following code example listens for address changes and displays the status of network interfaces when a event occurs.
-
+
:::code language="csharp" source="~/snippets/csharp/System.Net.NetworkInformation/NetworkChange/Overview/changed.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/System.Net.NetworkInformation/NetworkChange/Overview/changed.vb" id="Snippet1":::
diff --git a/xml/System.Net.NetworkInformation/NetworkInformationPermission.xml b/xml/System.Net.NetworkInformation/NetworkInformationPermission.xml
index 29603e8d3f6..31dcba35f9d 100644
--- a/xml/System.Net.NetworkInformation/NetworkInformationPermission.xml
+++ b/xml/System.Net.NetworkInformation/NetworkInformationPermission.xml
@@ -50,10 +50,6 @@
[!INCLUDE[cas-deprecated](~/includes/cas-deprecated.md)]
- This permission is used to secure data returned by the classes in the namespace.
-
- For declarative security, use the class.
-
]]>
@@ -100,14 +96,7 @@
One of the values.
Initializes a new instance of the class using the specified value.
-
-
-
+ To be added.
@@ -142,14 +131,7 @@
One of the values.
Initializes a new instance of the class with the specified .
-
-
-
+ To be added.
@@ -184,14 +166,7 @@
Gets the level of access to network information controlled by this permission.
One of the values.
-
- created with is given | access. A created with is given access.
-
- ]]>
-
+ To be added.
@@ -229,14 +204,7 @@
One of the values.
Adds the specified value to this permission.
-
-
-
+ To be added.
@@ -272,14 +240,7 @@
Creates and returns an identical copy of this permission.
A that is identical to the current permission.
-
-
-
+ To be added.
@@ -317,14 +278,7 @@
A that contains the XML encoding to use to set the state of the current permission.
Sets the state of this permission using the specified XML encoding.
-
-
-
+ To be added.
is .
@@ -375,14 +329,7 @@
An to intersect with the current permission. It must be of the same type as the current permission.
Creates and returns a permission that is the intersection of the current permission and the specified permission.
A that represents the intersection of the current permission and the specified permission. This new permission is if the intersection is empty or is .
-
-
-
+ To be added.
is not a .
@@ -424,14 +371,7 @@
Determines whether the current permission is a subset of the specified permission.
if the current permission is a subset of the specified permission; otherwise, .
-
-
-
+ To be added.
@@ -471,14 +411,7 @@
Returns a value indicating whether the current permission is unrestricted.
if the current permission is unrestricted; otherwise, .
-
- constructor.
-
- ]]>
-
+ To be added.
@@ -514,14 +447,7 @@
Creates an XML encoding of the state of this permission.
A that contains the XML encoding of the current permission.
-
-
-
+ To be added.
@@ -560,14 +486,7 @@
A permission to combine with the current permission.
Creates a permission that is the union of this permission and the specified permission.
A new permission that represents the union of the current permission and the specified permission.
-
- method returns a permission that represents all the states represented by both the current permission and the specified permission. Any demand that passes either permission passes their union.
-
- ]]>
-
+ To be added.
diff --git a/xml/System.Net.NetworkInformation/NetworkInformationPermissionAttribute.xml b/xml/System.Net.NetworkInformation/NetworkInformationPermissionAttribute.xml
index 5e95200a1c0..dcd63d70e0b 100644
--- a/xml/System.Net.NetworkInformation/NetworkInformationPermissionAttribute.xml
+++ b/xml/System.Net.NetworkInformation/NetworkInformationPermissionAttribute.xml
@@ -44,16 +44,12 @@
Allows security actions for to be applied to code using declarative security.
- namespace.
-
- The security information declared by a security attribute is stored in the metadata of the attribute target and is accessed by the system at run time. Security attributes are used only for declarative security. For imperative security, use the class.
-
]]>
@@ -90,14 +86,7 @@
A value that specifies the permission behavior.
Initializes a new instance of the class.
-
-
-
+ To be added.
@@ -132,20 +121,7 @@
Gets or sets the network information access level.
A string that specifies the access level.
-
-
-
+ To be added.
@@ -181,14 +157,7 @@
Creates and returns a new object.
A that corresponds to this attribute.
-
-
-
+ To be added.
diff --git a/xml/System.Net.NetworkInformation/PhysicalAddress.xml b/xml/System.Net.NetworkInformation/PhysicalAddress.xml
index a4b74b5eaf9..151e0a86851 100644
--- a/xml/System.Net.NetworkInformation/PhysicalAddress.xml
+++ b/xml/System.Net.NetworkInformation/PhysicalAddress.xml
@@ -467,27 +467,17 @@
method to retrieve the address from an existing instance.
-
-
## Examples
The following code example creates a instance by calling the method.
diff --git a/xml/System.Net.NetworkInformation/Ping.xml b/xml/System.Net.NetworkInformation/Ping.xml
index b59a82cfc80..95d69921909 100644
--- a/xml/System.Net.NetworkInformation/Ping.xml
+++ b/xml/System.Net.NetworkInformation/Ping.xml
@@ -114,10 +114,6 @@
]]>
- How to: Ping a Host
- Network Programming in the .NET Framework
- Network Programming Samples
- NetworkInformation
diff --git a/xml/System.Net.PeerToPeer.Collaboration/PeerCollaborationPermission.xml b/xml/System.Net.PeerToPeer.Collaboration/PeerCollaborationPermission.xml
index d9360bdd72f..a2a4a22b748 100644
--- a/xml/System.Net.PeerToPeer.Collaboration/PeerCollaborationPermission.xml
+++ b/xml/System.Net.PeerToPeer.Collaboration/PeerCollaborationPermission.xml
@@ -49,10 +49,6 @@
[!INCLUDE[cas-deprecated](~/includes/cas-deprecated.md)]
- The default allow all local and Intranet zone applications to access collaboration services, and no permission is granted for Internet zone applications. In other words, if the default permissions are not changed, all link-local and site-local applications have access to Peer-To-Peer collaboration services, but global applications have no access.
-
- This class is not derivable.
-
]]>
@@ -91,16 +87,7 @@
One of the values in the enumeration.
Initializes a new instance of the . The initial for this instance is passed when the constructor is called.
-
- , the instance passes all demands. If state contains any other value, the instance fails all demands.
-
- ]]>
-
+ To be added.
@@ -137,14 +124,7 @@
Creates and returns a copy of the current .
A that contains a copy of the current instance of .
-
- instance grants the same access to resources as the original permission.
-
- ]]>
-
+ To be added.
@@ -182,16 +162,7 @@
The XML encoding to use to reconstruct the permission.
Represents the XML object model for encoding security objects.
-
-
-
+ To be added.
The parameter is not a valid permission element.
-or-
@@ -241,22 +212,7 @@ The parameter's version number is not supported.
Permission to with the current permission. It must be of the same type as the current permission.
Creates and returns a permission that is the intersection of the current and the specified permission.
A new permission that represents the intersection of the current and the specified permission. This new permission is a reference ( in Visual Basic) if the intersection is empty.
-
- method. X and Y represent object references that are not a `null` reference (`Nothing` in Visual Basic).
-
-- X.Intersect(X) returns a value equal to X.
-
-- X.Intersect(Y) returns the same value as Y.Intersect(X).
-
-- X.Intersect(a `null` reference) returns a `null` reference.
-
- ]]>
-
+ To be added.
The target parameter is not a reference ( in Visual Basic) and is not an instance of the same class as the current permission.
@@ -299,24 +255,7 @@ The parameter's version number is not supported.
Determines whether the current is a subset of the specified permission.
if the current is a subset of the specified permission; otherwise, .
-
- is a subset of the specified permission if the current permission specifies a set of operations that is wholly contained by the specified permission. For example, a permission that represents access to "*C:\example.txt*" is a subset of a permission that represents access to "*C:\\*". If this method returns `true`, the current permission represents no more access to the protected resource than does the specified permission.
-
- The following statements are required to be `true` for all implementations of the method. X, Y, and Z represent objects that are not a `null` reference (`Nothing` in Visual Basic).
-
-- X.IsSubsetOf(X) returns `true`.
-
-- X.IsSubsetOf(Y) returns the same value as Y.IsSubsetOf(X) if and only if X and Y represent the same set of permissions.
-
-- If X.IsSubsetOf(Y) and Y.IsSubsetOf(Z) both return `true`, X.IsSubsetOf(Z) returns `true`.
-
- If X represents an empty object with a permission state of `None`, and Y represents an `IPermission` object that is a `null` reference (`Nothing` in Visual Basic), X.IsSubsetOf(Y) returns `true`. If Z is also an empty permission, the compound set operation X.Union(Z).IsSubsetOf(Y) also returns `true` because the of two empty permissions is an empty permission.
-
- ]]>
-
+ To be added.
The parameter is a reference ( in Visual Basic).
@@ -359,14 +298,7 @@ The parameter's version number is not supported.
Returns a value specifying whether the current is unrestricted.
if the current permission is unrestricted; otherwise, .
-
-
-
+ To be added.
@@ -404,14 +336,7 @@ The parameter's version number is not supported.
Creates an XML encoding of the and its current state.
An XML encoding of the permission, including any state information.
-
-
-
+ To be added.
@@ -451,22 +376,7 @@ The parameter's version number is not supported.
A permission to combine with the current permission. It must be of the same type as the current permission.
Creates a permission that is the union of the current and the specified permission.
A new permission that represents the of the current and the specified permission.
-
- is a permission that represents all the operations represented by both the current and the specified permission. Any demand that passes either permission passes their union.
-
- The following statements are required to be `true` for all implementations of the Union method. X and Y represent objects that are not a `null` reference (`Nothing` in Visual Basic).
-
-- X.Union(X) returns an object that has the same value as X.
-
-- X.Union(Y) returns an object that has the same value as the object returned by Y.Union(X).
-
-- X.Union(a `null` reference (`Nothing` in Visual Basic)) returns an object that has the same value as X.
-
- ]]>
-
+ To be added.
The parameter is a reference ( in Visual Basic).
diff --git a/xml/System.Net.PeerToPeer.Collaboration/PeerCollaborationPermissionAttribute.xml b/xml/System.Net.PeerToPeer.Collaboration/PeerCollaborationPermissionAttribute.xml
index 80843c310fe..906b1141c46 100644
--- a/xml/System.Net.PeerToPeer.Collaboration/PeerCollaborationPermissionAttribute.xml
+++ b/xml/System.Net.PeerToPeer.Collaboration/PeerCollaborationPermissionAttribute.xml
@@ -43,16 +43,12 @@
Allows security actions for to be applied to code using declarative security. This class cannot be inherited.
- that is used.
-
- The security information declared by a security attribute is stored in the metadata of the attribute target and is accessed by the system at run time. Security attributes are used only for declarative security. For imperative security, use the corresponding permission class.
-
]]>
@@ -90,14 +86,7 @@
Specifies a value.
Initializes a new instance of the class with the specified .
-
- works with to allow or deny a peer access to the collaboration session.
-
- ]]>
-
+ To be added.
@@ -133,14 +122,7 @@
Creates and returns a new .
A new object.
-
- .
-
- ]]>
-
+ To be added.
When permissions are inherited , must be overridden.
diff --git a/xml/System.Net.PeerToPeer/PnrpPermission.xml b/xml/System.Net.PeerToPeer/PnrpPermission.xml
index 1eff1490e65..542ad4d6fee 100644
--- a/xml/System.Net.PeerToPeer/PnrpPermission.xml
+++ b/xml/System.Net.PeerToPeer/PnrpPermission.xml
@@ -49,17 +49,8 @@
[!INCLUDE[cas-deprecated](~/includes/cas-deprecated.md)]
- The default permissions allow all local and Intranet zone applications to access PNRP services. If the default permissions are not changed, all link-local and site-local applications have access to Peer-to-Peer services, but global (internet) applications have no access.
-
- Instances of this type have two permission states: they either have no access to the resources protected by the permission, or they have unrestricted full access to those resources.
-
]]>
-
-
-
-
- PNRP Namespace Provider API
@@ -93,20 +84,7 @@
One of the values in the enumeration.
Initializes a new instance of the class with the supplied initial permission state.
-
-
-
-
-
-
-
+ To be added.
@@ -141,26 +119,13 @@
Creates and returns an identical copy of the current .
An object with an IPermission interface, whose instance contains a copy of the current instance of .
-
-
-
+ To be added.
The parameter is not a valid element.
-or-
The parameter's version number is not supported.
The parameter is a reference ( in Visual Basic).
-
-
-
- PNRP Namespace Provider API
@@ -197,25 +162,13 @@ The parameter's version number is not supported.
The XML encoding to use to reconstruct the permission.
Reconstructs a security object with a specified state from an XML encoding.
-
-
-
+ To be added.
The parameter is not a valid element.
-or-
The parameter's version number is not supported.
The parameter is a reference ( in Visual Basic).
-
-
-
@@ -253,26 +206,8 @@ The parameter's version number is not supported.
A permission to with the current permission. It must be of the same type as the current permission.
Creates and returns a permission that is the intersection of the current and the specified permission.
A new permission that represents the intersection of the current and the specified permission. This new permission is a reference ( in Visual Basic) if the intersection is empty.
-
- object references that are not a `null` reference (Nothing in Visual Basic).
-
-- X.Intersect(X) returns a value equal to X.
-
-- X.Intersect(Y) returns the same value as Y.Intersect(X).
-
-- X.Intersect(a `null` reference (`Nothing` in Visual Basic)) returns a `null` reference (`Nothing` in Visual Basic).
-
- ]]>
-
+ To be added.
The target parameter is not a reference ( in Visual Basic) and is not an instance of the same class as the current permission.
-
-
-
@@ -311,29 +246,8 @@ The parameter's version number is not supported.
Determines whether the current is a subset of the specified permission.
if the current is a subset of the specified permission; otherwise, .
-
- is a subset of the specified permission if the current permission specifies a set of operations that is wholly contained by the specified permission. For example, a permission that represents access to "*C:\example.txt*" is a subset of a permission that represents access to "*C:\\*". If this method returns `true`, the current permission represents no more access to the protected resource than does the specified permission.
-
-The following statements are required to be `true` for all implementations of the IsSubsetOf method. X, Y, and Z represent objects that are not a `null` reference (`Nothing` in Visual Basic).
-
-- `X.IsSubsetOf(X)` returns `true`.
-
-- `X.IsSubsetOf(Y)` returns the same value as `Y.IsSubsetOf(X)` if and only if X and Y represent the same set of permissions.
-
-- If `X.IsSubsetOf(Y)` and `Y.IsSubsetOf(Z)` both return `true`, `X.IsSubsetOf(Z)` returns `true`.
-
-If X represents an empty object with a permission state of *None*, and Y represents an object that is a `null` reference (`Nothing` in Visual Basic), `X.IsSubsetOf(Y)` returns `true`. If Z is also an empty permission, the compound set operation `X.Union(Z).IsSubsetOf(Y)` also returns `true` because the of two empty permissions is an empty permission.
-
- ]]>
-
+ To be added.
The target parameter is not a reference ( in Visual Basic) and is not an instance of the same class as the current permission.
-
-
-
@@ -372,18 +286,7 @@ If X represents an empty object with a permis
Returns a value specifying whether the current is unrestricted.
if the current permission is unrestricted; otherwise, .
-
-
-
-
-
-
-
+ To be added.
@@ -419,8 +322,6 @@ If X represents an empty object with a permis
Creates an XML encoding of the and its current state.
A object that contains an XML encoding of the permission, including any state information.
To be added.
-
-
@@ -458,27 +359,9 @@ If X represents an empty object with a permis
A permission to combine with the current permission. It must be of the same type as the current permission.
Creates a permission that is the union of the current and the specified permission.
A new permission that represents the of the current and the specified permission.
-
- is a permission that represents all the operations represented by both the current and the specified permission. Any demand that passes either permission passes their union.
-
- The following statements are required to be `true` for all implementations of the Union method. X and Y represent objects that are not a `null` reference (`Nothing` in Visual Basic).
-
-- X.Union(X) returns an object that has the same value as X.
-
-- X.Union(Y) returns an object that has the same value as the object returned by Y.Union(X).
-
-- X.Union(a `null` reference (`Nothing` in Visual Basic)) returns an object that has the same value as X.
-
- ]]>
-
+ To be added.
parameter is invalid.
-
-
-
diff --git a/xml/System.Net.PeerToPeer/PnrpPermissionAttribute.xml b/xml/System.Net.PeerToPeer/PnrpPermissionAttribute.xml
index 126caeac640..6cdcd0a4a32 100644
--- a/xml/System.Net.PeerToPeer/PnrpPermissionAttribute.xml
+++ b/xml/System.Net.PeerToPeer/PnrpPermissionAttribute.xml
@@ -43,16 +43,12 @@
Allows security actions for to be applied to code using declarative security.
- that is used.
-
- The security information declared by a security attribute is stored in the metadata of the attribute target and is accessed by the system at run time. Security attributes are used only for declarative security. For imperative security, use the corresponding permission class.
-
]]>
@@ -88,14 +84,7 @@
One of the values.
Initializes a new instance of the class with the specified .
-
- works with to allow or deny actions by the peer granted the permission and the permission attribute.
-
- ]]>
-
+ To be added.
@@ -133,11 +122,6 @@
Creates and returns a new .
A new object.
To be added.
-
- This method is not used, and is included only to support inheritance from at compile time or during interpretation.
-
- When this class inherits from , it overrides automatically at compile time or at run-time.
-
diff --git a/xml/System.Net.Security/SslClientAuthenticationOptions.xml b/xml/System.Net.Security/SslClientAuthenticationOptions.xml
index f9fd8b5198e..1bf455ee238 100644
--- a/xml/System.Net.Security/SslClientAuthenticationOptions.xml
+++ b/xml/System.Net.Security/SslClientAuthenticationOptions.xml
@@ -46,7 +46,7 @@
and, in .NET 5 and later versions, for .
+ This property bag is used as argument for and .
The uses this property bag in the property.
diff --git a/xml/System.Net.Security/SslStream.xml b/xml/System.Net.Security/SslStream.xml
index 0680cb37634..922c3c34e10 100644
--- a/xml/System.Net.Security/SslStream.xml
+++ b/xml/System.Net.Security/SslStream.xml
@@ -87,15 +87,9 @@
assumes that a timeout along with any other when one is thrown from the inner stream will be treated as fatal by its caller. Reusing a instance after a timeout will return garbage. An application should the and throw an exception in these cases.
- The .NET Framework 4.6 includes a security feature that blocks insecure cipher and hashing algorithms for connections. Applications using TLS/SSL through APIs such as HttpClient, HttpWebRequest, FTPClient, SmtpClient, and SslStream and targeting .NET Framework 4.6 get the more-secure behavior by default.
-
- Developers may want to opt out of this behavior in order to maintain interoperability with their existing SSL3 services OR TLS w/ RC4 services. [This article](https://support.microsoft.com/kb/3069494) explains how to modify your code so that the new behavior is disabled.
-
- The .NET Framework 4.7 adds new overloads for the methods that authenticate SslStreams that do not specify a TLS version, but instead use the TLS version defined as the system default in [SCHANNEL](/windows/win32/secauthn/secure-channel). Use these methods in your app as a way to be able to later modify the defaults as TLS version best practice changes over time, without the need to rebuild and redeploy your app.
-
- Also see [Transport Layer Security (TLS) best practices with the .NET Framework](/dotnet/framework/network-programming/tls).
-
+To opt out of the behavior that blocks insecure cipher and hashing algorithms for connections in order to maintain interoperability with your existing SSL3 services OR TLS w/ RC4 services, see [Cannot connect to a server by using the ServicePointManager or SslStream APIs after upgrade to the .NET Framework 4.6](https://support.microsoft.com/kb/3069494).
+Use the the overloads for methods that authenticate SslStreams that don't specify a TLS version, but instead use the TLS version defined as the system default in [SCHANNEL](/windows/win32/secauthn/secure-channel), as a way to be able to later modify the defaults, without the need to rebuild and redeploy your app.
## Examples
The following code example demonstrates creating an that uses the class to communicate with clients.
@@ -337,12 +331,10 @@
The use of the Null cipher is required when the encryption policy is set to .
> [!NOTE]
-> .NET caches SSL sessions as they are created and attempts to reuse a cached session for subsequent requests, if possible. When attempting to reuse an SSL session, the Framework uses the first element of the provided during authentication (if there is one), or tries to reuse an anonymous sessions if the certificate collection is empty.
+> .NET caches SSL sessions as they are created and attempts to reuse a cached session for subsequent requests, if possible. When attempting to reuse an SSL session, .NET uses the first element of the provided during authentication (if there is one), or tries to reuse an anonymous sessions if the certificate collection is empty.
> [!NOTE]
-> Client certificates are not supported in the SSL version 2 protocol.
-
-
+> Client certificates are not supported in the SSL version 2 protocol.
## Examples
The following code example creates an and initiates the client portion of the authentication.
@@ -436,8 +428,7 @@
The use of the Null cipher is required when the encryption policy is set to .
> [!NOTE]
-> .NET caches SSL sessions as they are created and attempts to reuse a cached session for subsequent requests, if possible. When attempting to reuse an SSL session, the Framework uses the first element of the provided during authentication (if there is one), or tries to reuse an anonymous sessions if the certificate collection is empty.
-
+> .NET caches SSL sessions as they are created and attempts to reuse a cached session for subsequent requests, if possible. When attempting to reuse an SSL session, .NET uses the first element of the provided during authentication (if there is one), or tries to reuse an anonymous sessions if the certificate collection is empty.
## Examples
The following code example demonstrates calling this constructor. This example is part of a larger example provided for the class.
diff --git a/xml/System.Net.Sockets/IPProtectionLevel.xml b/xml/System.Net.Sockets/IPProtectionLevel.xml
index 8ba53f31c65..54cd8866ffe 100644
--- a/xml/System.Net.Sockets/IPProtectionLevel.xml
+++ b/xml/System.Net.Sockets/IPProtectionLevel.xml
@@ -44,18 +44,17 @@
A value that enables restriction of an IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix.
-
- <socket> Element (Network Settings)
diff --git a/xml/System.Net.Sockets/Socket.xml b/xml/System.Net.Sockets/Socket.xml
index 782cc0b2263..480824bada9 100644
--- a/xml/System.Net.Sockets/Socket.xml
+++ b/xml/System.Net.Sockets/Socket.xml
@@ -82,14 +82,6 @@ implementation, this may lead to unintended data interleaving for large or multi
- Network Programming in the .NET Framework
- Best Practices for System.Net Classes
- Cache Management for Network Applications
- Internet Protocol Version 6
- Network Programming Samples
- Network Tracing in the .NET Framework
- Security in Network Programming
- Socket Performance Enhancements in Version 3.5
@@ -250,9 +242,6 @@ This method populates the instance with data ga
> [!NOTE]
> If this constructor throws a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
The combination of and results in an invalid socket.
@@ -311,11 +300,6 @@ This method populates the instance with data ga
> [!NOTE]
> If this constructor throws a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example demonstrates how to create an instance of the class.
@@ -385,11 +369,6 @@ This method populates the instance with data ga
> [!NOTE]
> Before calling the method, you must first call the method to listen for and queue incoming connection requests.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example accepts a simple connection.
@@ -776,11 +755,6 @@ This method populates the instance with data ga
If the remote host shuts down or closes the connection, can throw a . If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example compares the results of calling IOControl with FIONREAD and the Available property.
@@ -878,9 +852,6 @@ This method populates the instance with data ga
> [!NOTE]
> If you receive a , use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -892,14 +863,11 @@ This method populates the instance with data ga
-or-
The accepted socket is bound.
- .NET Framework only: An error occurred when attempting to access the socket.
- Asynchronous Client Socket Example
- Asynchronous Server Socket Example
@@ -976,9 +944,6 @@ This method populates the instance with data ga
> [!NOTE]
> If you receive a , use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -992,14 +957,11 @@ This method populates the instance with data ga
The accepted socket is bound.
is less than 0.
- .NET Framework only: An error occurred when attempting to access the socket.
- Asynchronous Client Socket Example
- Asynchronous Server Socket Example
@@ -1078,9 +1040,6 @@ This method populates the instance with data ga
> [!NOTE]
> If you receive a , use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -1094,14 +1053,11 @@ This method populates the instance with data ga
The accepted socket is bound.
is less than 0.
- .NET Framework only: An error occurred when attempting to access the socket.
- Asynchronous Client Socket Example
- Asynchronous Server Socket Example
@@ -1197,9 +1153,6 @@ This method populates the instance with data ga
> [!NOTE]
> If you receive a , use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -1207,7 +1160,6 @@ This method populates the instance with data ga
is .
- .NET Framework only: An error occurred when attempting to access the socket.
The has been closed.
A caller higher in the call stack does not have permission for the requested operation.
The has been placed in a listening state by calling , or an asynchronous operation is already in progress.
@@ -1308,9 +1260,6 @@ This method populates the instance with data ga
> [!NOTE]
> If this socket has previously been disconnected, then must be called on a thread that will not exit until the operation is complete. This is a limitation of the underlying provider.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -1318,7 +1267,6 @@ This method populates the instance with data ga
is .
- .NET Framework only: An error occurred when attempting to access the socket.
The has been closed.
The is not in the socket family.
The port number is not valid.
@@ -1421,9 +1369,6 @@ This method populates the instance with data ga
> [!NOTE]
> If this socket has previously been disconnected, then must be called on a thread that will not exit until the operation is complete. This is a limitation of the underlying provider.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -1431,7 +1376,6 @@ This method populates the instance with data ga
is .
- .NET Framework only: An error occurred when attempting to access the socket.
The has been closed.
This method is valid for sockets that use or .
The port number is not valid.
@@ -1534,9 +1478,6 @@ This method populates the instance with data ga
> [!NOTE]
> If this socket has previously been disconnected, then must be called on a thread that will not exit until the operation is complete. This is a limitation of the underlying provider.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -1627,13 +1568,9 @@ This method populates the instance with data ga
> [!NOTE]
> If you receive a exception, use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
The object has been closed.
- .NET Framework only: An error occurred when attempting to access the socket.
@@ -1730,9 +1667,6 @@ This method populates the instance with data ga
> [!NOTE]
> `state` is an instantiation of a user-defined class.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -1740,7 +1674,6 @@ This method populates the instance with data ga
is .
- .NET Framework only: An error occurred when attempting to access the socket.
has been closed.
@@ -1832,9 +1765,6 @@ This method populates the instance with data ga
> [!NOTE]
> `state` is an instantiation of a user-defined class.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -1842,7 +1772,6 @@ This method populates the instance with data ga
is .
- .NET Framework only: An error occurred when attempting to access the socket.
has been closed.
@@ -1944,9 +1873,6 @@ This method populates the instance with data ga
> [!NOTE]
> `state` is an instantiation of a user-defined class.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -1954,7 +1880,6 @@ This method populates the instance with data ga
is .
- .NET Framework only: An error occurred when attempting to access the socket.
has been closed.
@@ -2064,9 +1989,6 @@ This method populates the instance with data ga
> [!NOTE]
> `state` is an instantiation of a user-defined class.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -2074,7 +1996,6 @@ This method populates the instance with data ga
is .
- .NET Framework only: An error occurred when attempting to access the socket.
has been closed.
@@ -2196,9 +2117,6 @@ This method populates the instance with data ga
> [!NOTE]
> If you receive a , use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -2210,7 +2128,6 @@ This method populates the instance with data ga
-or-
is .
- .NET Framework only: An error occurred when attempting to access the socket.
is less than 0.
@@ -2322,9 +2239,6 @@ This method populates the instance with data ga
> [!NOTE]
> If you receive a , use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -2336,7 +2250,6 @@ This method populates the instance with data ga
-or-
is .
- .NET Framework only: An error occurred when attempting to access the socket.
is less than 0.
@@ -2453,9 +2366,6 @@ This method populates the instance with data ga
> [!NOTE]
> The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -2465,7 +2375,6 @@ This method populates the instance with data ga
is .
is empty.
- .NET Framework only: An error occurred when attempting to access the socket. See remarks section below.
The has been closed.
@@ -2560,9 +2469,6 @@ This method populates the instance with data ga
> [!NOTE]
> The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -2572,7 +2478,6 @@ This method populates the instance with data ga
is .
is empty.
- .NET Framework only: An error occurred when attempting to access the socket. See remarks section below.
The has been closed.
@@ -2677,9 +2582,6 @@ This method populates the instance with data ga
> [!NOTE]
> The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -2687,7 +2589,6 @@ This method populates the instance with data ga
is .
- .NET Framework only: An error occurred when attempting to access the socket. See remarks section below.
is less than 0.
@@ -2800,9 +2701,6 @@ This method populates the instance with data ga
> [!NOTE]
> The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -2810,7 +2708,6 @@ This method populates the instance with data ga
is .
- .NET Framework only: An error occurred when attempting to access the socket. See remarks section below.
is less than 0.
@@ -2916,9 +2813,6 @@ This method populates the instance with data ga
> [!NOTE]
> If you receive a exception, use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -2927,7 +2821,6 @@ This method populates the instance with data ga
The object has been closed.
The socket is not connected to a remote host.
The file was not found.
- .NET Framework only: An error occurred when attempting to access the socket. See remarks section below.
@@ -3009,16 +2902,12 @@ This method populates the instance with data ga
> [!NOTE]
> If you receive a exception, use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
]]>
The object has been closed.
- .NET Framework only: An error occurred when attempting to access the socket. See remarks section below.
The operating system is not Windows NT or later.
-or-
@@ -3119,9 +3008,6 @@ This method populates the instance with data ga
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The execution context (the security context, the impersonated user, and the calling context) is cached for the asynchronous methods. After the first use of a particular context (a specific asynchronous method, a specific instance, and a specific callback), subsequent uses of that context will see a performance improvement.
@@ -3133,7 +3019,6 @@ This method populates the instance with data ga
-or-
is .
- .NET Framework only: An error occurred when attempting to access the socket.
is less than 0.
@@ -3223,9 +3108,6 @@ This method populates the instance with data ga
> [!NOTE]
> If you receive a when calling the method, use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -3300,9 +3182,6 @@ This method populates the instance with data ga
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
An error occurred when attempting to access the socket.
@@ -3426,9 +3305,6 @@ This method populates the instance with data ga
> [!NOTE]
> To set the socket option to `false`, create a , set the enabled property to `true`, and set the property to the desired time out period. Use this along with the socket option to call the method.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -3497,9 +3373,6 @@ This method populates the instance with data ga
> [!NOTE]
> To set the socket option to `false`, create a , set the enabled property to `true`, and set the property to the desired time-out period. Use this along with the socket option to call the method.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -3583,9 +3456,6 @@ This method populates the instance with data ga
> [!NOTE]
> If the socket has been previously disconnected, then you cannot use this method to restore the connection. Use one of the asynchronous methods to reconnect. This is a limitation of the underlying provider.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -3672,9 +3542,6 @@ This method populates the instance with data ga
> [!NOTE]
> If the socket has been previously disconnected, then you cannot use this method to restore the connection. Use one of the asynchronous methods to reconnect. This is a limitation of the underlying provider.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
The following code example connects to a remote endpoint and then verifies the connection.
@@ -3752,9 +3619,6 @@ This method populates the instance with data ga
> [!NOTE]
> If the socket has been previously disconnected, then you cannot use this method to restore the connection. Use one of the asynchronous methods to reconnect. This is a limitation of the underlying provider.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
The following code example connects to a remote endpoint and then verifies the connection.
@@ -3834,9 +3698,6 @@ This method populates the instance with data ga
> [!NOTE]
> If the socket has been previously disconnected, then you cannot use this method to restore the connection. Use one of the asynchronous methods to reconnect. This is a limitation of the underlying provider.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
The following code example connects to a remote endpoint and then verifies the connection.
@@ -4583,9 +4444,6 @@ This method populates the instance with data ga
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -4816,9 +4674,6 @@ This method populates the instance with data ga
When the `disposing` parameter is `true`, this method releases all resources held by any managed objects that this references. This method invokes the `Dispose()` method of each referenced object.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -4989,8 +4844,6 @@ The target process should use the constructor multiple times using the same byte array in the argument in each call. If you do, you'll have multiple managed instances with the same underlying socket, which is strongly discouraged.
-On .NET Framework, if the process creating the socket uses asynchronous methods, the process must first set the property to `true`. Otherwise, the asynchronous method will bind the socket to an [I/O completion port](/windows/win32/fileio/i-o-completion-ports) of the creating process, which may cause an to be thrown in the target process.
-
has limited support on Windows. Unlike on .NET Framework, the property is a NOP, therefore the process creating the socket must never call asynchronous methods on the socket. A call to an asynchronous operation will always bind it to an [I/O completion port](/windows/win32/fileio/i-o-completion-ports) of the creating process, which may cause an to be thrown in the target process.
]]>
@@ -5132,9 +4985,6 @@ Duplication of the socket reference failed.
> [!NOTE]
> If you receive a , use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -5146,7 +4996,6 @@ Duplication of the socket reference failed.
-or-
.NET 7+ only: The has been closed.
- .NET Framework, .NET Core, and .NET 5-6 only: The has been closed.
method was previously called.
@@ -5214,12 +5063,8 @@ Duplication of the socket reference failed.
> [!NOTE]
> If you receive a , use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
- .NET Framework, .NET Core, and .NET 5-6 only: The has been closed.
is empty.
@@ -5293,12 +5138,8 @@ Duplication of the socket reference failed.
> [!NOTE]
> If you receive a , use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
- .NET Framework, .NET Core, and .NET 5-6 only: The has been closed.
is empty.
@@ -5366,9 +5207,6 @@ Duplication of the socket reference failed.
> [!NOTE]
> If you receive a , use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -5382,7 +5220,6 @@ Duplication of the socket reference failed.
-or-
.NET 7+ only: The has been closed.
- .NET Framework, .NET Core, and .NET 5-6 only: The has been closed.
@@ -5441,12 +5278,8 @@ Duplication of the socket reference failed.
> [!NOTE]
> If you receive a , use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
- .NET Framework, .NET Core, and .NET 5-6 only: The has been closed.
is .
@@ -5531,9 +5364,6 @@ Duplication of the socket reference failed.
> [!NOTE]
> All I/O initiated by a given thread is canceled when that thread exits. A pending asynchronous operation can fail if the thread exits before the operation completes.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -5547,7 +5377,6 @@ Duplication of the socket reference failed.
-or-
.NET 7+ only: The has been closed.
- .NET Framework, .NET Core, and .NET 5-6 only: The has been closed.
@@ -5616,9 +5445,6 @@ Duplication of the socket reference failed.
> [!NOTE]
> All I/O initiated by a given thread is canceled when that thread exits. A pending asynchronous operation can fail if the thread exits before the operation completes.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -5632,7 +5458,6 @@ Duplication of the socket reference failed.
-or-
.NET 7+ only: The has been closed.
- .NET Framework, .NET Core, and .NET 5-6 only: The has been closed.
@@ -5699,9 +5524,6 @@ Duplication of the socket reference failed.
> [!NOTE]
> If you receive a , use the property to obtain the specific error code.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -5715,7 +5537,6 @@ Duplication of the socket reference failed.
-or-
.NET 7+ only: The has been closed.
- .NET Framework, .NET Core, and .NET 5-6 only: The has been closed.
@@ -5797,7 +5618,6 @@ Duplication of the socket reference failed.
-or-
.NET 7+ only: The has been closed.
- .NET Framework, .NET Core, and .NET 5-6 only: The has been closed.
@@ -5875,9 +5695,6 @@ Duplication of the socket reference failed.
> [!NOTE]
> The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -5891,7 +5708,6 @@ Duplication of the socket reference failed.
-or-
.NET 7+ only: The has been closed.
- .NET Framework, .NET Core, and .NET 5-6 only: The has been closed.
@@ -5965,9 +5781,6 @@ Duplication of the socket reference failed.
> [!NOTE]
> The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -5981,7 +5794,6 @@ Duplication of the socket reference failed.
-or-
.NET 7+ only: The has been closed.
- .NET Framework, .NET Core, and .NET 5-6 only: The has been closed.
@@ -6044,13 +5856,9 @@ Duplication of the socket reference failed.
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
.NET 8+ only: The socket is not connected to a remote host.
- .NET Framework, .NET Core, and .NET 5-6 only: The has been closed.
is empty.
@@ -6121,9 +5929,6 @@ Duplication of the socket reference failed.
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -6137,7 +5942,6 @@ Duplication of the socket reference failed.
-or-
.NET 7+ only: The has been closed.
- .NET Framework, .NET Core, and .NET 5-6 only: The has been closed.
@@ -6369,9 +6173,6 @@ In general, the `GetSocketOption` method should be used whenever getting a [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -6448,9 +6249,6 @@ In general, the `GetSocketOption` method should be used whenever getting a option, will throw a . If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error. Use this overload for any sockets that are represented by Boolean values or integers.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -6529,9 +6327,6 @@ In general, the `GetSocketOption` method should be used whenever getting a [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -6663,9 +6458,6 @@ In general, the `GetSocketOption` method should be used whenever getting a [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -6738,9 +6530,6 @@ In general, the `GetSocketOption` method should be used whenever getting a [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -6987,9 +6776,6 @@ The maximum length of the pending connections queue is determined automatically.
> [!NOTE]
> You must call the method before calling , or will throw a .
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> The backlog parameter is limited to different values depending on the Operating System. You may specify a higher value, but the backlog will be limited based on the Operating System.
@@ -7068,9 +6854,6 @@ The maximum length of the pending connections queue is determined automatically.
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -7402,9 +7185,6 @@ The maximum length of the pending connections queue is determined automatically.
> [!NOTE]
> This method cannot detect certain kinds of connection problems, such as a broken network cable, or that the remote host was shut down ungracefully. You must attempt to send or receive data to detect these kinds of errors.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
The following code example creates a socket, connects to a server, and uses to check the status of the socket.
@@ -7590,9 +7370,6 @@ The maximum length of the pending connections queue is determined automatically.
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -7684,8 +7461,6 @@ The maximum length of the pending connections queue is determined automatically.
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
- **Note** This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -7747,8 +7522,6 @@ If you're using a connectionless , [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-
-This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
]]>
An error occurred when attempting to access the socket.
@@ -7826,9 +7599,6 @@ This member outputs trace information when you enable network tracing in your ap
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -7922,9 +7692,6 @@ This member outputs trace information when you enable network tracing in your ap
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -8005,8 +7772,6 @@ If you're using a connectionless , [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
An error occurred when attempting to access the socket.
@@ -8086,9 +7851,6 @@ This member outputs trace information when you enable network tracing in your ap
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -8186,9 +7948,6 @@ This member outputs trace information when you enable network tracing in your ap
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -8264,9 +8023,6 @@ If you're using a connectionless , [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
An error occurred when attempting to access the socket.
@@ -8346,9 +8102,6 @@ If you're using a connectionless , [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -8459,9 +8212,6 @@ If you're using a connectionless , , will read the first queued datagram from the destination address you specify in the method. If the datagram you receive is larger than the size of the `buffer` parameter, `buffer` gets filled with the first part of the message, the excess data is lost and a is thrown.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -8965,9 +8715,6 @@ If you're using a connectionless , [!NOTE]
> The of the used in needs to match the of the used in .
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -9113,9 +8860,6 @@ If you're using a connectionless , [!NOTE]
> The of the used in needs to match the of the used in .
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -9309,9 +9053,6 @@ If you're using a connectionless , [!NOTE]
> The of the used in needs to match the of the used in .
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -9426,9 +9167,6 @@ If you're using a connectionless , [!NOTE]
> The of the used in needs to match the of the used in .
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -9932,9 +9670,6 @@ You must call the Bind method before performing this operation.
> [!NOTE]
> The of the used in needs to match the of the used in .
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -9966,7 +9701,7 @@ You must call the Bind method before performing this operation.
-or-
- The .NET Framework is running on an AMD 64-bit processor.
+ .NET is running on an AMD 64-bit processor.
-or-
@@ -10373,9 +10108,6 @@ You must call the Bind method before performing this operation.
The is set after a call to either or . If you try to access this property earlier, will throw a . If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -10641,9 +10373,6 @@ You must call the Bind method before performing this operation.
> [!NOTE]
> The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -10734,9 +10463,6 @@ You must call the Bind method before performing this operation.
> [!NOTE]
> The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -10800,8 +10526,6 @@ If you're using a connection-oriented protocol, [!NOTE]
>If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!IMPORTANT]
>The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
@@ -10881,9 +10605,6 @@ This member outputs trace information when you enable network tracing in your ap
> [!NOTE]
> The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -10974,9 +10695,6 @@ This member outputs trace information when you enable network tracing in your ap
> [!NOTE]
> The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -11104,8 +10822,6 @@ With a connection-oriented protocol, will
> [!NOTE]
> You must ensure that the size does not exceed the maximum packet size of the underlying service provider. If it does, the datagram won't be sent and will throw a . If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!IMPORTANT]
>The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
@@ -11207,9 +10923,6 @@ The following code example sends the data found in buffer, and specifies [!NOTE]
> The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -11276,8 +10989,6 @@ If you're using a connection-oriented protocol, [!NOTE]
>If you receive a , use the property to obtain the specific error code. After you've obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!IMPORTANT]
>The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
@@ -11363,9 +11074,6 @@ This member outputs trace information when you enable network tracing in your ap
> [!NOTE]
> The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -11478,9 +11186,6 @@ This member outputs trace information when you enable network tracing in your ap
> [!NOTE]
> The successful completion of a send does not indicate that the data was successfully delivered. If no buffer space is available within the transport system to hold the data to be transmitted, send will block unless the socket has been placed in nonblocking mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
@@ -11982,9 +11687,6 @@ This member outputs trace information when you enable network tracing in your ap
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
The following code example creates and connects a socket and then sends a file to the remote host. The file "test.txt" is located in the root directory of the local machine.
@@ -12066,9 +11768,6 @@ This member outputs trace information when you enable network tracing in your ap
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
The following code example creates and connects a socket. The file "test.txt" is located in the root directory of the local machine. In this example, we create a prebuffer and postbuffer of data and send them to the remote host with the file. The default are used.
@@ -12448,9 +12147,6 @@ This member outputs trace information when you enable network tracing in your ap
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
The following code example sends a connectionless datagram to the specified remote host.
@@ -12586,9 +12282,6 @@ This member outputs trace information when you enable network tracing in your ap
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
The following code example sends a connectionless datagram to the specified remote host. are passed to the method.
@@ -12774,9 +12467,6 @@ This member outputs trace information when you enable network tracing in your ap
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
The following code example sends a connectionless datagram to the specified remote host. The size and are passed to the method.
@@ -12871,9 +12561,6 @@ This member outputs trace information when you enable network tracing in your ap
> [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
The following code example sends a connectionless datagram to the specified remote host. The offset, size, and are passed to the method.
@@ -13543,9 +13230,6 @@ The [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
The following code example sets the and time-out values.
@@ -13683,9 +13367,6 @@ The [!NOTE]
> If you receive a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
The following code example sets the and time-out values.
@@ -13848,9 +13529,6 @@ The [!NOTE]
> If you receive a when calling the method, use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
## Examples
The following code example uses to disable the .
@@ -14038,17 +13716,10 @@ The System.Boolean
- Gets a value that indicates whether the Framework supports IPv6 for certain obsolete members.
+ Gets a value that indicates whether the framework supports IPv6 for certain obsolete members.
- if the Framework supports IPv6 for certain obsolete methods; otherwise, .
-
-
-
+ if the framework supports IPv6 for certain obsolete methods; otherwise, .
+ To be added.
@@ -14163,20 +13834,9 @@ The System.Boolean
- Gets or sets a value that specifies whether the socket should only use Overlapped I/O mode. On .NET 5+ (including .NET Core versions), the value is always .
-
- on .NET Framework if the uses only overlapped I/O; otherwise, . The default is .
-
- you intend to call on. Otherwise, the Framework may assign a completion port to the socket, which would prohibit the use of .
-
-On .NET 5+ (include .NET Core) versions, the value of this property is always `false`, and you cannot change its value.
-
- ]]>
-
+ Gets or sets a value that specifies whether the socket should only use Overlapped I/O mode.
+ Always .
+ The value of this property is always `false`, and you cannot change its value.
The socket has been bound to a completion port.
diff --git a/xml/System.Net.Sockets/SocketAsyncEventArgs.xml b/xml/System.Net.Sockets/SocketAsyncEventArgs.xml
index f8a0dac1e8a..d9c7332400d 100644
--- a/xml/System.Net.Sockets/SocketAsyncEventArgs.xml
+++ b/xml/System.Net.Sockets/SocketAsyncEventArgs.xml
@@ -100,9 +100,6 @@
- Network Programming in the .NET Framework
- Network Tracing in the .NET Framework
- Socket Performance Enhancements in Version 3.5
@@ -762,9 +759,6 @@
When the `disposing` parameter is `true`, this method releases all resources held by any managed objects that this references. This method invokes the `Dispose()` method of each referenced object.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
diff --git a/xml/System.Net.Sockets/SocketFlags.xml b/xml/System.Net.Sockets/SocketFlags.xml
index ef768b2fd1f..2e33d853501 100644
--- a/xml/System.Net.Sockets/SocketFlags.xml
+++ b/xml/System.Net.Sockets/SocketFlags.xml
@@ -56,7 +56,7 @@
## Examples
The following example sends data and specifies `SocketFlags.None`.
-
+
:::code language="csharp" source="~/snippets/csharp/System.Net.Sockets/Socket/Receive/source.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/System.Net.Sockets/Socket/Receive/source.vb" id="Snippet3":::
diff --git a/xml/System.Net.Sockets/TcpClient.xml b/xml/System.Net.Sockets/TcpClient.xml
index 53dc7ea94b0..33cae15c70a 100644
--- a/xml/System.Net.Sockets/TcpClient.xml
+++ b/xml/System.Net.Sockets/TcpClient.xml
@@ -147,14 +147,6 @@
## Remarks
This constructor creates a new and allows the underlying service provider to assign the most appropriate local IP address and port number. You must first call the method before sending and receiving data.
-> [!NOTE]
-> On .NET Framework, this constructor works only with IPv4 address types.
-
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example demonstrates how to use the parameterless constructor to create a new .
@@ -213,11 +205,6 @@
You must call the method before sending and receiving data.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example demonstrates how to create an instance of the class using a local endpoint.
@@ -274,13 +261,6 @@
[!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example demonstrates how to create an instance of the class.
@@ -348,11 +328,6 @@
> [!NOTE]
> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example demonstrates how to create an instance of the class using a host name and port number.
@@ -852,11 +827,6 @@ The `Available` property is a way to determine whether data is queued for readin
Calling this method will eventually result in the close of the associated `Socket` and will also close the associated that is used to send and receive data if one was created.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example demonstrates closing a by calling the `Close` method.
@@ -927,9 +897,6 @@ The `Available` property is a way to determine whether data is queued for readin
> [!NOTE]
> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> If you receive NotSupportedException with message `This protocol version is not supported` while using IPv6 address, then make sure you enabled IPv6 in constructor by passing .
@@ -999,12 +966,7 @@ The `Available` property is a way to determine whether data is queued for readin
Call this method to establish a synchronous remote host connection to the specified and port number. The method will block until it either connects or fails. After connecting with the remote host, use the method to obtain the underlying . Use this `NetworkStream` to send and receive data.
> [!NOTE]
-> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-> [!NOTE]
+> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.> [!NOTE]
> If you receive NotSupportedException with message `This protocol version is not supported` while using IPv6 address, then make sure you enabled IPv6 in constructor by passing .
@@ -1074,12 +1036,7 @@ The `Available` property is a way to determine whether data is queued for readin
This method is typically used immediately after a call to the method, which can return multiple IP addresses for a single host. Call the `Connect` method to establish a synchronous remote host connection to the host specified by the array of elements and the port number. The `Connect` method will block until it either connects or fails. After connecting with the remote host, use the method to obtain the underlying . Use this `NetworkStream` to send and receive data.
> [!NOTE]
-> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-> [!NOTE]
+> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.> [!NOTE]
> If you receive NotSupportedException with message `This protocol version is not supported` while using IPv6 address, then make sure you enabled IPv6 in constructor by passing .
@@ -1154,11 +1111,6 @@ The `Available` property is a way to determine whether data is queued for readin
> [!NOTE]
> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example uses the host name and port number to connect with a remote host.
@@ -1227,9 +1179,6 @@ The `Available` property is a way to determine whether data is queued for readin
> [!NOTE]
> If you receive a , use to obtain the specific error code. After you've obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
> [!NOTE]
> If you receive a `NotSupportedException` with the message "This protocol version is not supported" while using IPv6 address, make sure you enabled IPv6 in the constructor by passing .
@@ -1292,12 +1241,7 @@ The `Available` property is a way to determine whether data is queued for readin
Call this method to establish a synchronous remote host connection to the specified and port number as an asynchronous operation. After connecting with the remote host, use the method to obtain the underlying . Use this `NetworkStream` to send and receive data.
> [!NOTE]
-> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-> [!NOTE]
+> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.> [!NOTE]
> If you receive NotSupportedException with message `This protocol version is not supported` while using IPv6 address, then make sure you enabled IPv6 in constructor by passing .
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1365,12 +1309,7 @@ The `Available` property is a way to determine whether data is queued for readin
This method is typically used immediately after a call to the method, which can return multiple IP addresses for a single host. Call this method to establish a synchronous remote host connection to the host specified by the array of elements and the port number as an asynchronous operation. After connecting with the remote host, use the method to obtain the underlying . Use this `NetworkStream` to send and receive data.
> [!NOTE]
-> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-> [!NOTE]
+> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.> [!NOTE]
> If you receive NotSupportedException with message `This protocol version is not supported` while using IPv6 address, then make sure you enabled IPv6 in constructor by passing .
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1427,12 +1366,7 @@ The `Available` property is a way to determine whether data is queued for readin
Call this method to establish a synchronous remote host connection to the specified . Before you call `Connect`, you must create an instance of the `IPEndPoint` class using an IP address and a port number. Use this `IPEndPoint` as the `remoteEP` parameter. The `Connect` method will block until it either connects or fails. After connecting with the remote host, use the method to obtain the underlying . Use this `NetworkStream` to send and receive data.
> [!NOTE]
-> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-> [!NOTE]
+> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.> [!NOTE]
> If you receive NotSupportedException with message `This protocol version is not supported` while using IPv6 address, then make sure you enabled IPv6 in constructor by passing .
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1497,12 +1431,7 @@ The `Available` property is a way to determine whether data is queued for readin
If IPv6 is enabled and the method is called to connect to a host that resolves to both IPv6 and IPv4 addresses, the connection to the IPv6 address will be attempted first before the IPv4 address. This may have the effect of delaying the time to establish the connection if the host is not listening on the IPv6 address.
> [!NOTE]
-> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
- This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error. This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
]]>
@@ -1559,12 +1488,7 @@ The `Available` property is a way to determine whether data is queued for readin
Call this method to establish a synchronous remote host connection to the specified IP address and port number as an asynchronous operation. After connecting with the remote host, use the method to obtain the underlying . Use this `NetworkStream` to send and receive data.
> [!NOTE]
-> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-> [!NOTE]
+> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.> [!NOTE]
> If you receive NotSupportedException with message `This protocol version is not supported` while using IPv6 address, then make sure you enabled IPv6 in constructor by passing .
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1624,12 +1548,7 @@ The `Available` property is a way to determine whether data is queued for readin
This method is typically used immediately after a call to the method, which can return multiple IP addresses for a single host. Call this method to establish a synchronous remote host connection to the host specified by the array of IP addresses and the port number as an asynchronous operation. After connecting with the remote host, use the method to obtain the underlying . Use this `NetworkStream` to send and receive data.
> [!NOTE]
-> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-> [!NOTE]
+> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.> [!NOTE]
> If you receive NotSupportedException with message `This protocol version is not supported` while using IPv6 address, then make sure you enabled IPv6 in constructor by passing .
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
@@ -1692,12 +1611,7 @@ The `Available` property is a way to determine whether data is queued for readin
If IPv6 is enabled and the method is called to connect to a host that resolves to both IPv6 and IPv4 addresses, the connection to the IPv6 address will be attempted first before the IPv4 address. This may have the effect of delaying the time to establish the connection if the host is not listening on the IPv6 address.
> [!NOTE]
-> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
- This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error. This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
]]>
@@ -1863,12 +1777,7 @@ The `Available` property is a way to determine whether data is queued for readin
## Remarks
This method is called by the public `Dispose()` method and the method, if it has been overridden. `Dispose()` invokes this method with the `disposing` parameter set to `true`. `Finalize` invokes this method with `disposing` set to `false`.
- When the `disposing` parameter is `true`, this method releases all resources held by any managed objects that this references. It does this by invoking the `Dispose()` method of each referenced object.
-
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
- ]]>
+ When the `disposing` parameter is `true`, this method releases all resources held by any managed objects that this references. It does this by invoking the `Dispose()` method of each referenced object. ]]>
@@ -2104,11 +2013,6 @@ The `GetStream` method returns a that yo
> [!NOTE]
> If you receive a , use to obtain the specific error code. After you have obtained this code, you can refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example uses `GetStream` to obtain the underlying . After obtaining the , it sends and receives using its and methods.
diff --git a/xml/System.Net.Sockets/TcpListener.xml b/xml/System.Net.Sockets/TcpListener.xml
index 71769119f1e..4a2cf12f823 100644
--- a/xml/System.Net.Sockets/TcpListener.xml
+++ b/xml/System.Net.Sockets/TcpListener.xml
@@ -219,11 +219,6 @@
Call the method to begin listening for incoming connection attempts.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example creates an instance of the class using the local endpoint.
@@ -288,11 +283,6 @@
Call the method to begin listening for incoming connection attempts.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example creates an instance of the class using a local IP address and port number.
@@ -357,11 +347,6 @@
The returned is initialized with the IP address and port number of the remote host. You can use any of the and methods available in the class to communicate with the remote host. When you are finished using the , be sure to call its method. If your application is relatively simple, consider using the method rather than the method. provides you with simple methods for sending and receiving data over a network in blocking synchronous mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
In the following code example, the method is used to return a . This is used to communicate with the newly connected client.
@@ -421,12 +406,7 @@
## Remarks
This operation will not block. The returned object will complete after the socket connection has been accepted.
- The returned in is initialized with the IP address and port number of the remote host. You can use any of the and methods available in the class to communicate with the remote host. When you are finished using the , be sure to call its method. If your application is relatively simple, consider using the method rather than the method. provides you with simple methods for sending and receiving data over a network in blocking synchronous mode.
-
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
- This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
+ The returned in is initialized with the IP address and port number of the remote host. You can use any of the and methods available in the class to communicate with the remote host. When you are finished using the , be sure to call its method. If your application is relatively simple, consider using the method rather than the method. provides you with simple methods for sending and receiving data over a network in blocking synchronous mode. This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
]]>
@@ -480,9 +460,6 @@
The returned in is initialized with the IP address and port number of the remote host. You can use any of the and methods available in the class to communicate with the remote host. When you are finished using the , be sure to call its method. If your application is relatively simple, consider using the method rather than the method. provides you with simple methods for sending and receiving data over a network in blocking synchronous mode.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
]]>
@@ -538,11 +515,6 @@
Use the method to obtain the underlying of the returned . The will provide you with methods for sending and receiving with the remote host. When you are through with the , be sure to call its method. If you want greater flexibility than a offers, consider using .
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
In the following code example, the method is used to return a . This is used to communicate with the newly connected client.
@@ -606,9 +578,6 @@
Use the method to obtain the underlying of the returned in the . The will provide you with methods for sending and receiving with the remote host. When you are through with the , be sure to call its method. If you want greater flexibility than a offers, consider using or .
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
]]>
@@ -665,9 +634,6 @@
Use the method to obtain the underlying of the returned in the . The will provide you with methods for sending and receiving with the remote host. When you are through with the , be sure to call its method. If you want greater flexibility than a offers, consider using or .
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .
]]>
@@ -864,9 +830,6 @@
> [!NOTE]
> If you receive a , use the property to obtain the specific error code and refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
An error occurred while attempting to access the socket.
@@ -937,9 +900,6 @@
> [!NOTE]
> If you receive a , use the property to obtain the specific error code and refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
An error occurred while attempting to access the socket.
@@ -1076,9 +1036,6 @@
> [!NOTE]
> If you receive a , use the property to obtain the specific error code and refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
The underlying has been closed.
@@ -1144,9 +1101,6 @@
> [!NOTE]
> If you receive a , use the property to obtain the specific error code and refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
]]>
@@ -1463,11 +1417,6 @@
Use the method to close the and stop listening. You are responsible for closing your accepted connections separately.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example demonstrates how is used to listen for incoming client connection attempts.
@@ -1538,11 +1487,6 @@
> [!NOTE]
> Use the property to obtain the specific error code and refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example demonstrates how is used to listen for incoming client connection attempts.
@@ -1607,11 +1551,6 @@
## Remarks
closes the listener. Any unaccepted connection requests in the queue will be lost. Remote hosts waiting for a connection to be accepted will throw a . You are responsible for closing your accepted connections separately.
-> [!NOTE]
-> This member outputs trace information when you enable network tracing in your application. For more information, see [Network Tracing in the .NET Framework](/dotnet/framework/network-programming/network-tracing).
-
-
-
## Examples
The following code example demonstrates using the method to close the underlying .
diff --git a/xml/System.Net.WebSockets/WebSocket.xml b/xml/System.Net.WebSockets/WebSocket.xml
index f670b4f2c90..6e79676c220 100644
--- a/xml/System.Net.WebSockets/WebSocket.xml
+++ b/xml/System.Net.WebSockets/WebSocket.xml
@@ -940,8 +940,8 @@ Exactly one send and one receive is supported on each [<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
- [System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.")]
- [<System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.")>]
+ [System.Obsolete("This API supports the .NET infrastructure and is not intended to be used directly from your code.")]
+ [<System.Obsolete("This API supports the .NET infrastructure and is not intended to be used directly from your code.")>]
From 7aa1374406e35859f574da26bdfd64a2f5191645 Mon Sep 17 00:00:00 2001
From: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Date: Thu, 21 May 2026 20:25:06 -0700
Subject: [PATCH 2/5] fix typo
---
xml/System.Net.Cache/HttpCacheAgeControl.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xml/System.Net.Cache/HttpCacheAgeControl.xml b/xml/System.Net.Cache/HttpCacheAgeControl.xml
index 7a342cee19b..16ba48b1bb0 100644
--- a/xml/System.Net.Cache/HttpCacheAgeControl.xml
+++ b/xml/System.Net.Cache/HttpCacheAgeControl.xml
@@ -300,7 +300,7 @@
0
- For internal use only.An is thrown if you try to use this member.
+ For internal use only. An is thrown if you try to use this member.
From 8c9a665ca49b8face4d9baad4901f7d9466d8c13 Mon Sep 17 00:00:00 2001
From: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Date: Fri, 22 May 2026 15:38:24 -0700
Subject: [PATCH 3/5] respond to feedback
---
xml/System.Net.Http/HttpClient.xml | 87 ++--
xml/System.Net.Sockets/Socket.xml | 432 +++++++++++-------
.../SocketAsyncEventArgs.xml | 3 +
xml/System.Net.Sockets/TcpClient.xml | 112 ++++-
xml/System.Net.Sockets/TcpListener.xml | 67 ++-
5 files changed, 477 insertions(+), 224 deletions(-)
diff --git a/xml/System.Net.Http/HttpClient.xml b/xml/System.Net.Http/HttpClient.xml
index 4e92e3056b1..a9a5f8735b8 100644
--- a/xml/System.Net.Http/HttpClient.xml
+++ b/xml/System.Net.Http/HttpClient.xml
@@ -589,7 +589,8 @@ This property has no effect on any of the object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, that nests a is thrown.
+> In case of timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The request message was already sent by the instance.
@@ -658,7 +659,8 @@ The is not an absolute URI.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, that nests a is thrown.
+> In case of timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The request message was already sent by the instance.
@@ -733,7 +735,8 @@ The is not an absolute URI.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, that nests a is thrown.
+> In case of timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The request message was already sent by the instance.
@@ -808,7 +811,8 @@ The request failed due to timeout.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, that nests a is thrown.
+> In case of timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The request message was already sent by the instance.
@@ -956,7 +960,8 @@ The request failed due to timeout.
This operation doesn't block. The returned object will complete after the whole response (including content) is read. The behavior is the same as if has been explicitly specified.
> [!NOTE]
-> In case of timeout, that nests a is thrown.
+> In case of timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -1018,7 +1023,8 @@ The request failed due to timeout.
This operation doesn't block. The returned object will complete after the whole response (including content) is read. The behavior is the same as if has been explicitly specified.
> [!NOTE]
-> In case of timeout, that nests a is thrown.
+> In case of timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -1085,7 +1091,8 @@ The request failed due to timeout.
This operation doesn't block. The returned object will complete based on the `completionOption` parameter after the part or all of the response (including content) is read.
> [!NOTE]
-> In case of timeout, that nests a is thrown.
+> In case of timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -1153,7 +1160,8 @@ The request failed due to timeout.
This operation doesn't block. The returned object will complete after the whole response (including content) is read. The behavior is the same as if has been explicitly specified.
> [!NOTE]
-> In case of timeout, that nests a is thrown.
+> In case of timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -1221,7 +1229,8 @@ The request failed due to timeout.
This operation doesn't block. The returned object will complete based on the `completionOption` parameter after the part or all of the response (including content) is read.
> [!NOTE]
-> In case of timeout, that nests a is thrown.
+> In case of timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -1284,7 +1293,8 @@ The request failed due to timeout.
This operation doesn't block. The returned object will complete after the whole response (including content) is read. The behavior is the same as if has been explicitly specified.
> [!NOTE]
-> In case of timeout, that nests a is thrown.
+> In case of timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -1357,7 +1367,8 @@ The request failed due to timeout.
This operation doesn't block. The returned object will complete based on the `completionOption` parameter after the part or all of the response (including content) is read.
> [!NOTE]
-> In case of timeout, that nests a is thrown.
+> In case of timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -1427,7 +1438,8 @@ The request failed due to timeout.
This operation doesn't block. The returned object will complete based on the `completionOption` parameter after the part or all of the response (including content) is read.
> [!NOTE]
-> In case of timeout, that nests a is thrown.
+> In case of timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -1517,7 +1529,8 @@ The request failed due to timeout.
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of timeout, that nests a is thrown.
+> In case of timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -1812,7 +1825,8 @@ The request failed due to timeout.
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout, that nests a is thrown.
+> In case of a timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -1880,7 +1894,8 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout, that nests a is thrown.
+> In case of a timeout, that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -1945,7 +1960,8 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout: an that nests a is thrown.
+> In case of a timeout: an that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The cancellation token was canceled. This exception is stored into the returned task.
@@ -2011,7 +2027,8 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout, an that nests a is thrown.
+> In case of a timeout, an that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is .
@@ -2105,7 +2122,8 @@ The request failed due to timeout.
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout, an that nests a is thrown.
+> In case of a timeout, an that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -2173,7 +2191,8 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout, an that nests a is thrown.
+> In case of a timeout, an that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -2238,7 +2257,8 @@ The response status code was outside of the range of 200-299 (which indicate suc
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout, an that nests a is thrown.
+> In case of a timeout, an that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is .
@@ -2304,7 +2324,8 @@ The request failed due to timeout.
In some scenarios, you might need more control over which status codes are considered to be successful; for example, an API might be expected to always return `200 OK`. In such cases, we recommend to manually check if matches the expected value.
> [!NOTE]
-> In case of a timeout, an that nests a is thrown.
+> In case of a timeout, an that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is .
@@ -2699,7 +2720,8 @@ The size specified is greater than the maximum allowed buffer size.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, an that nests a is thrown.
+> In case of timeout, an that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -2763,7 +2785,8 @@ The size specified is greater than the maximum allowed buffer size.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, an that nests a is thrown.
+> In case of timeout, an that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -2835,7 +2858,8 @@ The size specified is greater than the maximum allowed buffer size.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, an that nests a is thrown.
+> In case of timeout, an that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -2905,7 +2929,8 @@ The request failed due to timeout.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, an that nests a is thrown.
+> In case of timeout, an that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -2998,7 +3023,8 @@ The request failed due to timeout.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, an that nests a is thrown.
+> In case of timeout, an that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -3062,7 +3088,8 @@ The request failed due to timeout.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, an that nests a is thrown.
+> In case of timeout, an that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -3134,7 +3161,8 @@ The request failed due to timeout.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, an that nests a is thrown.
+> In case of timeout, an that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
@@ -3204,7 +3232,8 @@ The request failed due to timeout.
This operation doesn't block. The returned object will complete after the whole response (including content) is read.
> [!NOTE]
-> In case of timeout, an that nests a is thrown.
+> In case of timeout, an that nests a is thrown. (On .NET Core versions, without any inner exception is thrown.)
+
]]>
The is not an absolute URI and isn't set.
diff --git a/xml/System.Net.Sockets/Socket.xml b/xml/System.Net.Sockets/Socket.xml
index 480824bada9..ba090c4c6dd 100644
--- a/xml/System.Net.Sockets/Socket.xml
+++ b/xml/System.Net.Sockets/Socket.xml
@@ -242,6 +242,8 @@ This method populates the instance with data ga
> [!NOTE]
> If this constructor throws a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
+> [!NOTE]
+> This member outputs trace information when you enable network tracing in your application.
]]>
The combination of and results in an invalid socket.
@@ -298,7 +300,10 @@ This method populates the instance with data ga
The `addressFamily` parameter specifies the addressing scheme that the class uses, the `socketType` parameter specifies the type of the class, and the `protocolType` parameter specifies the protocol used by . The three parameters are not independent. Some address families restrict which protocols can be used with them, and often the type is implicit in the protocol. If the combination of address family, type, and protocol type results in an invalid , this constructor throws a .
> [!NOTE]
-> If this constructor throws a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
+> If this constructor throws a , use the property to obtain the specific error code. After you have obtained this code, refer to the [Windows Sockets version 2 API error code](/windows/desktop/winsock/windows-sockets-error-codes-2) documentation for a detailed description of the error.
+
+> [!NOTE]
+> This member outputs trace information when you enable network tracing in your application.
## Examples
The following code example demonstrates how to create an instance of the class.
@@ -367,7 +372,10 @@ This method populates the instance with data ga
If you call this method using a non-blocking , and no connection requests are queued, throws a . If you receive a , use the