You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<paramname="cookie">The cookie to locate in the <seecref="T:System.Net.CookieCollection" />.</param>
295
+
<summary>Determines whether the specified cookie is in the <seecref="T:System.Net.CookieCollection" />.</summary>
296
+
<returns><seelangword="true" /> if the specified cookie is found in the <seecref="T:System.Net.CookieCollection" />; otherwise, <seelangword="false" />.</returns>
297
+
<remarks>
298
+
<formattype="text/markdown"><![CDATA[
299
+
300
+
## Remarks
301
+
The `cookie` is determined to be part of the collection if <xref:System.Net.Cookie.Name%2A>, <xref:System.Net.Cookie.Domain%2A> and <xref:System.Net.Cookie.Path%2A> match.
302
+
The comparison for <xref:System.Net.Cookie.Name%2A> and <xref:System.Net.Cookie.Domain%2A> is case-insensitive.
303
+
The comparison for <xref:System.Net.Cookie.Path%2A> is case-sensitive.
<paramname="array">The target <seecref="T:System.Array" /> to which the <seecref="T:System.Net.CookieCollection" /> will be copied.</param>
349
-
<paramname="index">The zero-based index in the target <seecref="T:System.Array" /> where copying begins.</param>
350
-
<summary>Copies the elements of a <seecref="T:System.Net.CookieCollection" /> to an instance of the <seecref="T:System.Array" /> class, starting at a particular index.</summary>
357
+
<paramname="array">The target array to which the <seecref="T:System.Net.CookieCollection" /> will be copied.</param>
358
+
<paramname="index">The zero-based index in the target array where copying begins.</param>
359
+
<summary>Copies the elements of a <seecref="T:System.Net.CookieCollection" /> to the specified array, starting at a particular index.</summary>
351
360
<remarks>
352
361
<formattype="text/markdown"><![CDATA[
353
362
@@ -405,13 +414,13 @@
405
414
</Parameters>
406
415
<Docs>
407
416
<paramname="array">The target <seecref="T:System.Net.Cookie" /> array to which the <seecref="T:System.Net.CookieCollection" /> will be copied.</param>
408
-
<paramname="index">The zero-based index in the target <seecref="T:System.Array" /> where copying begins.</param>
417
+
<paramname="index">The zero-based index in the target array where copying begins.</param>
409
418
<summary>Copies the elements of this <seecref="T:System.Net.CookieCollection" /> to a <seecref="T:System.Net.Cookie" /> array starting at the specified index of the target array.</summary>
410
419
<remarks>
411
420
<formattype="text/markdown"><![CDATA[
412
421
413
422
## Remarks
414
-
The <xref:System.Array>`array` parameter must be one-dimensional with zero-based indexing.
423
+
The `array` parameter must be one-dimensional with zero-based indexing.
415
424
416
425
]]></format>
417
426
</remarks>
@@ -515,7 +524,7 @@
515
524
<Parameters />
516
525
<Docs>
517
526
<summary>Gets an enumerator that can iterate through a <seecref="T:System.Net.CookieCollection" />.</summary>
518
-
<returns>An instance of an implementation of an <seecref="T:System.Collections.IEnumerator" /> interface that can iterate through a <seecref="T:System.Net.CookieCollection" />.</returns>
527
+
<returns>An <seecref="T:System.Collections.IEnumerator" /> for this collection.</returns>
<paramname="cookie">The cookie to remove from the <seecref="T:System.Net.CookieCollection" />.</param>
791
+
<summary>Removes the specified cookie from the <seecref="T:System.Net.CookieCollection" />.</summary>
792
+
<returns><seelangword="true" /> if <paramrefname="cookie" /> was successfully removed from the <seecref="T:System.Net.CookieCollection" />; otherwise, <seelangword="false" />. This method also returns <seelangword="false" /> if item is not found in the original collection.</returns>
793
+
<remarks>
794
+
<formattype="text/markdown"><![CDATA[
795
+
796
+
## Remarks
797
+
The `cookie` is determined to be part of the collection if <xref:System.Net.Cookie.Name%2A>, <xref:System.Net.Cookie.Domain%2A> and <xref:System.Net.Cookie.Path%2A> match.
798
+
799
+
The comparison for <xref:System.Net.Cookie.Name%2A> and <xref:System.Net.Cookie.Domain%2A> is case-insensitive.
800
+
801
+
The comparison for <xref:System.Net.Cookie.Path%2A> is case-sensitive.
802
+
]]></format>
803
+
</remarks>
785
804
</Docs>
786
805
</Member>
787
806
<MemberMemberName="SyncRoot">
@@ -860,9 +879,20 @@
860
879
</ReturnValue>
861
880
<Parameters />
862
881
<Docs>
863
-
<summary>To be added.</summary>
864
-
<returns>To be added.</returns>
865
-
<remarks>To be added.</remarks>
882
+
<summary>Gets an enumerator that can iterate through the <seecref="T:System.Net.CookieCollection" />.</summary>
883
+
<returns>An <seecref="T:System.Collections.Generic.IEnumerator`1" /> for this collection.</returns>
884
+
<remarks>
885
+
<formattype="text/markdown"><![CDATA[
886
+
887
+
## Remarks
888
+
You should use an <xref:System.Collections.Generic.IEnumerator%601> only to read data in the collection. Enumerators cannot be used to modify the underlying collection. The enumerator does not have exclusive access to the collection.
889
+
890
+
When an enumerator is created, it takes a snapshot of the current state of the collection. If changes are made to the collection, such as adding, modifying, or deleting elements, this snapshot gets out of sync and the enumerator throws an <xref:System.InvalidOperationException>. Two enumerators created from the same collection at the same time can produce different snapshots of the collection.
891
+
892
+
This member is an explicit interface member implementation. It can be used only when the <xref:System.Net.CookieCollection> instance is cast to an <xref:System.Collections.Generic.IEnumerable%601> interface.
Copy file name to clipboardExpand all lines: xml/System.Net/FileWebRequest.xml
+36-7Lines changed: 36 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -717,9 +717,26 @@
717
717
</ReturnValue>
718
718
<Parameters />
719
719
<Docs>
720
-
<summary>To be added.</summary>
721
-
<returns>To be added.</returns>
722
-
<remarks>To be added.</remarks>
720
+
<summary>Returns a stream for writing data to the file system resource as an asynchronous operation.</summary>
721
+
<returns>The task object representing the asynchronous operation.</returns>
722
+
<remarks>
723
+
<formattype="text/markdown"><![CDATA[
724
+
725
+
## Remarks
726
+
727
+
> [!NOTE]
728
+
> In the case of asynchronous requests, the client application is responsible for implementing its own time-out mechanism.
729
+
730
+
]]>
731
+
</format>
732
+
</remarks>
733
+
<exceptioncref="T:System.InvalidOperationException">The stream is being used by a previous call to <seecref="M:System.Net.FileWebRequest.BeginGetRequestStream(System.AsyncCallback,System.Object)"/>.
734
+
735
+
-or-
736
+
737
+
The stream already received a response previous to your request.</exception>
738
+
<exceptioncref="T:System.Net.ProtocolViolationException">The <seecref="P:System.Net.FileWebRequest.Method" /> property is GET or HEAD.</exception>
739
+
<exceptioncref="T:System.Net.WebException">The <seecref="T:System.Net.FileWebRequest" /> was aborted.</exception>
723
740
</Docs>
724
741
</Member>
725
742
<MemberMemberName="GetResponse">
@@ -799,9 +816,21 @@
799
816
</ReturnValue>
800
817
<Parameters />
801
818
<Docs>
802
-
<summary>To be added.</summary>
803
-
<returns>To be added.</returns>
804
-
<remarks>To be added.</remarks>
819
+
<summary>Returns a response to a file system request as an asynchronous operation.</summary>
820
+
<returns>The task object representing the asynchronous operation.</returns>
821
+
<remarks>
822
+
<formattype="text/markdown"><![CDATA[
823
+
824
+
## Remarks
825
+
826
+
> [!NOTE]
827
+
> In the case of asynchronous requests, the client application is responsible for implementing its own time-out mechanism.
828
+
829
+
]]>
830
+
</format>
831
+
</remarks>
832
+
<exceptioncref="T:System.InvalidOperationException">The stream is already in use by a previous call to <seecref="M:System.Net.FileWebRequest.BeginGetResponse(System.AsyncCallback,System.Object)" />.</exception>
833
+
<exceptioncref="T:System.Net.WebException">The <seecref="M:System.Net.FileWebRequest" /> was aborted.</exception>
Copy file name to clipboardExpand all lines: xml/System.Net/IPEndPoint.xml
+70-15Lines changed: 70 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -540,6 +540,32 @@
540
540
</remarks>
541
541
</Docs>
542
542
</Member>
543
+
<MemberGroupMemberName="Parse">
544
+
<Docs>
545
+
<summary>To be added.</summary>
546
+
<remarks>
547
+
<formattype="text/markdown"><![CDATA[
548
+
549
+
## Remarks
550
+
551
+
The number of parts (each part is separated by a period) in `s` determines how the endpoint's IP address is constructed. A one-part address is stored directly in the network address. A two-part address, convenient for specifying a class A address, puts the leading part in the first byte and the trailing part in the right-most three bytes of the network address. A three-part address, convenient for specifying a class B address, puts the first part in the first byte, the second part in the second byte, and the final part in the right-most two bytes of the network address. For example:
552
+
553
+
|Number of parts and example `s`|IPv4 address for IPEndPoint.Address|Port|
> Note that this method accepts as valid a value that can be parsed as an <xref:System.Int64>, and then treats that <xref:System.Int64> as the long value of an IP address in network byte order, similar to the way that the IPAddress constructor does. This means that this method returns true if the Int64 is parsed successfully, even if it represents an address that's not a valid IP address. For example, if s is "1", this method returns true even though "1" (or 0.0.0.1) is not a valid IP address and you might expect this method to return false. Fixing this bug would break existing apps, so the current behavior will not be changed. Your code can avoid this behavior by ensuring that it only uses this method to parse IP addresses in dotted-decimal format.
562
+
563
+
Literal IPv6 addresses require to be enclosed in square brackets [] when passing an endpoint that specifies a port number; otherwise, square braces are not mandatory.
<paramname="s">A read-only span that contains an IP endpoint in dotted-quad notation or network byte order for IPv4 and in colon-hexadecimal notation for IPv6.</param>
598
+
<summary>Converts an IP network endpoint (address and port) represented as a read-only span to an <seecref="T:System.Net.IPEndPoint" /> instance.</summary>
599
+
<returns>The object representation of an IP network endpoint.</returns>
574
600
<remarks>To be added.</remarks>
601
+
<exceptioncref="T:System.ArgumentNullException"><paramrefname="s" /> is <seelangword="null" />.</exception>
602
+
<exceptioncref="T:System.FormatException"><paramrefname="s" /> is not a valid IP endpoint.</exception>
<paramname="s">A string that contains an IP endpoint in dotted-quad notation or network byte order for IPv4 and in colon-hexadecimal notation for IPv6.</param>
634
+
<summary>Converts an IP network endpoint (address and port) represented as a string to an <seecref="T:System.Net.IPEndPoint" /> instance.</summary>
635
+
<returns>The object representation of an IP network endpoint.</returns>
608
636
<remarks>To be added.</remarks>
637
+
<exceptioncref="T:System.ArgumentNullException"><paramrefname="s" /> is <seelangword="null" />.</exception>
638
+
<exceptioncref="T:System.FormatException"><paramrefname="s" /> is not a valid IP endpoint.</exception>
609
639
</Docs>
610
640
</Member>
611
641
<MemberMemberName="Port">
@@ -764,6 +794,31 @@
764
794
</remarks>
765
795
</Docs>
766
796
</Member>
797
+
<MemberGroupMemberName="TryParse">
798
+
<Docs>
799
+
<summary>To be added.</summary>
800
+
<remarks>
801
+
<formattype="text/markdown"><![CDATA[
802
+
803
+
## Remarks
804
+
The number of parts (each part is separated by a period) in `s` determines how the endpoint's IP address is constructed. A one-part address is stored directly in the network address. A two-part address, convenient for specifying a class A address, puts the leading part in the first byte and the trailing part in the right-most three bytes of the network address. A three-part address, convenient for specifying a class B address, puts the first part in the first byte, the second part in the second byte, and the final part in the right-most two bytes of the network address. For example:
805
+
806
+
|Number of parts and example `s`|IPv4 address for IPEndPoint.Address|Port|
> Note that this method accepts as valid a value that can be parsed as an <xref:System.Int64>, and then treats that <xref:System.Int64> as the long value of an IP address in network byte order, similar to the way that the IPAddress constructor does. This means that this method returns true if the Int64 is parsed successfully, even if it represents an address that's not a valid IP address. For example, if s is "1", this method returns true even though "1" (or 0.0.0.1) is not a valid IP address and you might expect this method to return false. Fixing this bug would break existing apps, so the current behavior will not be changed. Your code can avoid this behavior by ensuring that it only uses this method to parse IP addresses in dotted-decimal format.
815
+
816
+
Literal IPv6 addresses require to be enclosed in square brackets [] when passing an endpoint that specifies a port number; otherwise, square braces are not mandatory.
817
+
818
+
]]></format>
819
+
</remarks>
820
+
</Docs>
821
+
</MemberGroup>
767
822
<MemberMemberName="TryParse">
768
823
<MemberSignatureLanguage="C#"Value="public static bool TryParse (ReadOnlySpan<char> s, out System.Net.IPEndPoint result);" />
769
824
<MemberSignatureLanguage="ILAsm"Value=".method public static hidebysig bool TryParse(valuetype System.ReadOnlySpan`1<char> s, [out] class System.Net.IPEndPoint& result) cil managed" />
<paramname="s">The IP endpoint to validate.</param>
852
+
<paramname="result">When this method returns, the <seecref="T:System.Net.IPEndPoint" /> version of <paramrefname="s" />.</param>
853
+
<summary>Tries to convert an IP network endpoint (address and port) represented as a read-only span to its <seecref="T:System.Net.IPEndPoint" /> equivalent, and returns a value that indicates whether the conversion succeeded.</summary>
854
+
<returns><seelangword="true" /> if <paramrefname="s" /> can be parsed as an IP endpoint; otherwise, <seelangword="false" />.</returns>
<paramname="s">The IP endpoint to validate.</param>
888
+
<paramname="result">When this method returns, the <seecref="T:System.Net.IPEndPoint" /> version of <paramrefname="s" />.</param>
889
+
<summary>Tries to convert an IP network endpoint (address and port) represented as a string to its <seecref="T:System.Net.IPEndPoint" /> equivalent, and returns a value that indicates whether the conversion succeeded.</summary>
890
+
<returns><seelangword="true" /> if <paramrefname="s" /> can be parsed as an IP endpoint; otherwise, <seelangword="false" />.</returns>
0 commit comments