Skip to content

Commit 1efe08a

Browse files
committed
Change description with changed example
1 parent ae0673b commit 1efe08a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Net.Http/WinHttpHandler.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ When this property is set to `true`, all HTTP redirect responses from the server
740740
</ReturnValue>
741741
<Docs>
742742
<summary>Gets or sets a callback method to validate the server certificate. This callback is part of the SSL handshake.</summary>
743-
<value>The callback should return <see langword="true" /> if the server certificate is considered valid and the request should be sent. Otherwise, return <see langword="false" />.</value>
743+
<value>The callback should return <see langword="true" /> if the server certificate is considered valid and the request should be sent. Otherwise, returns <see langword="false" />.</value>
744744
<remarks>
745745
<format type="text/markdown"><![CDATA[
746746
@@ -751,7 +751,7 @@ When this property is set to `true`, all HTTP redirect responses from the server
751751
752752
## Examples
753753
754-
The following code example implements the callback. If there are validation errors, this method displays them and returns `false`, which prevents communication with the unauthenticated server.
754+
The following code example implements the callback. If there are validation errors, this method returns `false` preventing communication with the unauthenticated server. Otherwise, it allows for additional validation and return `true` if the certificate is valid.
755755
756756
:::code language="csharp" source="~/snippets/csharp/System.Net.Http/WinHttpHandler/program.cs" id="Snippet1":::
757757
]]></format>

0 commit comments

Comments
 (0)