Skip to content

Commit 8fd9b0a

Browse files
Merge pull request #10622 from dotnet/main
Merge main into live
2 parents 8894dbc + 0121963 commit 8fd9b0a

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

xml/System.Net.Http/HttpClient.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,15 @@ The environment variables used for `DefaultProxy` initialization on Windows and
362362
363363
On systems where environment variables are case-sensitive, the variable names may be all lowercase or all uppercase. The lowercase names are checked first.
364364
365-
The proxy server may be a hostname or IP address, optionally followed by a colon and port number, or it may be an http URL, optionally including a username and password for proxy authentication. The URL must be start with `http`, not `https`, and cannot include any text after the hostname, IP, or port.
365+
The proxy server may be a hostname or IP address, optionally followed by a colon and port number, or it may be an `http`, `https`, `socks4`, `socks4a`, or `socks5` URL. The URL cannot include any text after the hostname, IP, or port. If a scheme isn't specified, `http` is assumed.
366+
The URL may optionally include a username and password for proxy authentication, but the password is ignored when using `socks4` or `socks4a` as the protocols have no support for password authentication.
367+
368+
* **`http`**: `http://[username:password@]hostname[:port]`
369+
* **`https`**: `https://[username:password@]hostname[:port]`
370+
* **`socks4`**: `socks4://[username@]hostname[:port]`
371+
* **`socks4a`**: `socks4a://[username@]hostname[:port]`
372+
* **`socks5`**: `socks5://[username:password@]hostname[:port]`
373+
366374
]]></format>
367375
</remarks>
368376
<exception cref="T:System.ArgumentNullException">The value passed cannot be <see langword="null" />.</exception>

xml/System.Net.Http/HttpClientHandler.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ After NuGet package v4.3.2, the default value of <xref:System.Net.DecompressionM
281281
</ReturnValue>
282282
<Docs>
283283
<summary>Gets or sets a value that indicates if the certificate is automatically picked from the certificate store or if the caller is allowed to pass in a specific client certificate.</summary>
284-
<value>The collection of security certificates associated with this handler.</value>
284+
<value>One of the enumeration values. The default value is <see cref="F:System.Net.Http.ClientCertificateOption.Manual" />.</value>
285285
<remarks>To be added.</remarks>
286286
</Docs>
287287
</Member>

xml/System.Text.Json/JsonSerializerOptions.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,10 @@ For more information, see [How to ignore properties with System.Text.Json](/dotn
686686
<summary>Gets or sets a value that indicates whether fields are handled during serialization and deserialization.
687687
The default value is <see langword="false" />.</summary>
688688
<value>
689-
<see langword="true" /> if fields are included during serialization; otherwise, <see langword="false" />.</value>
690-
<remarks>To be added.</remarks>
689+
<see langword="true" /> if public fields are included during serialization; otherwise, <see langword="false" />.</value>
690+
<remarks>This flag only enables serialization for public fields, as is the case for properties.
691+
Private members need to be opted into individually using the <see cref="T:System.Text.Json.Serialization.JsonIncludeAttribute" /> attribute.
692+
</remarks>
691693
<exception cref="T:System.InvalidOperationException">This property is set after serialization or deserialization has occurred.</exception>
692694
</Docs>
693695
</Member>

xml/System/String.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4364,6 +4364,8 @@ The following example demonstrates the <xref:System.String.CopyTo%2A> method.
43644364
<format type="text/markdown"><![CDATA[
43654365
## Remarks
43664366
The initial content of the destination span passed to `action` is undefined. Therefore, it is the delegate's responsibility to ensure that every element of the span is assigned. Otherwise, the resulting string could contain random characters.
4367+
4368+
To support interop scenarios, the underlying buffer is guaranteed to be at least 1 greater than represented by the span parameter of the action callback. This additional index represents the null-terminator and, if written, that is the only value supported. Writing any value other than the null-terminator corrupts the string and is considered undefined behavior.
43674369
]]></format>
43684370
</remarks>
43694371
</Docs>

0 commit comments

Comments
 (0)