Skip to content

Commit e283e30

Browse files
authored
Update CookieContainer.xml (#11327)
1 parent 2e88dd7 commit e283e30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Net/CookieContainer.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@
476476
## Remarks
477477
If you add a <xref:System.Net.Cookie> instance for just one specific host, do not set the <xref:System.Net.Cookie.Domain%2A> property of the <xref:System.Net.Cookie> instance. This is set automatically, based on the URI.
478478
479-
If your URI corresponds to your local domain and sends to all the hosts on the local domain, set the <xref:System.Net.Cookie><xref:System.Net.Cookie.Domain%2A> property equal to ".local". Otherwise, make sure it matches the host name used in the URI.
479+
If your URI corresponds to your local domain and sends to all the hosts on the local domain, set the <xref:System.Net.Cookie.Domain?displayProperty=nameWithType> property equal to ".local". Otherwise, make sure it matches the host name used in the URI.
480480
481481
If the <xref:System.Net.Cookie.Version%2A> property of a <xref:System.Net.Cookie> is Netscape, the <xref:System.Net.Cookie.Path%2A> property of the <xref:System.Net.Cookie>, if not set explicitly, is derived from the URI and is the complete path from the URI, including the page name.
482482
@@ -553,7 +553,7 @@
553553
## Remarks
554554
If you add a <xref:System.Net.Cookie> instance for just one specific host, do not set the <xref:System.Net.Cookie.Domain%2A> property of the <xref:System.Net.Cookie> instance. This is set automatically, based on the URI.
555555
556-
If your URI corresponds to your local domain and sends to all the hosts on the local domain, set the <xref:System.Net.Cookie><xref:System.Net.Cookie.Domain%2A> property equal to ".local". Otherwise, make sure it matches the host name used in the URI.
556+
If your URI corresponds to your local domain and sends to all the hosts on the local domain, set the <xref:System.Net.Cookie> <xref:System.Net.Cookie.Domain%2A> property equal to ".local". Otherwise, make sure it matches the host name used in the URI.
557557
558558
If <xref:System.Net.CookieContainer.Count%2A> equals <xref:System.Net.CookieContainer.Capacity%2A>, one or more <xref:System.Net.Cookie> instances is removed from the container before adding the `cookie` parameter. Enough <xref:System.Net.Cookie> instances are removed to bring <xref:System.Net.CookieContainer.Count%2A> below <xref:System.Net.CookieContainer.Capacity%2A> as follows: if there are expired instances in scope they are cleaned up. If not, then the least recently used <xref:System.Net.CookieCollection> is found and removed from the container.
559559

0 commit comments

Comments
 (0)