Skip to content

Commit f9e83bd

Browse files
authored
HttpRequestException.StatusCode property and ctor
HttpRequestException.StatusCode property gets the HTTP status code associated with the exception if any. It was introduced in dotnet/runtime#32455
2 parents c5f3a6b + dd3e622 commit f9e83bd

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

xml/System.Net.Http/HttpRequestException.xml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,10 @@
165165
<Parameter Name="statusCode" Type="System.Nullable&lt;System.Net.HttpStatusCode&gt;" Index="2" FrameworkAlternate="net-5.0" />
166166
</Parameters>
167167
<Docs>
168-
<param name="message">To be added.</param>
169-
<param name="inner">To be added.</param>
170-
<param name="statusCode">To be added.</param>
171-
<summary>To be added.</summary>
172-
<remarks>To be added.</remarks>
168+
<param name="message">A message that describes the current exception.</param>
169+
<param name="inner">The inner exception.</param>
170+
<param name="statusCode">The HTTP status code.</param>
171+
<summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestException" /> class with a specific message that describes the current exception, an inner exception, and an HTTP status code.</summary>
173172
</Docs>
174173
</Member>
175174
<Member MemberName="StatusCode">
@@ -191,9 +190,9 @@
191190
<ReturnType>System.Nullable&lt;System.Net.HttpStatusCode&gt;</ReturnType>
192191
</ReturnValue>
193192
<Docs>
194-
<summary>To be added.</summary>
195-
<value>To be added.</value>
196-
<remarks>To be added.</remarks>
193+
<summary>Gets the HTTP status code to be returned with the exception.</summary>
194+
<value>An HTTP status code if the exception represents a non-successful result, otherwise <c>null</c>.</value>
195+
<remarks>This property was introduced in .NET 5.0.</remarks>
197196
</Docs>
198197
</Member>
199198
</Members>

0 commit comments

Comments
 (0)