-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New HttpRequestException.StatusCode property #4042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
7f14c1c
e2ffb49
3950e88
f4e4c97
f297224
8b71d0b
71cc931
fcf6eb8
2af41ef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,5 +141,90 @@ | |
<remarks>To be added.</remarks> | ||
</Docs> | ||
</Member> | ||
<Member MemberName=".ctor"> | ||
<MemberSignature Language="C#" Value="public HttpRequestException (string message);" /> | ||
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string message) cil managed" /> | ||
<MemberSignature Language="DocId" Value="M:System.Net.Http.HttpRequestException.#ctor(System.String)" /> | ||
<MemberSignature Language="VB.NET" Value="Public Sub New (message As String)" /> | ||
<MemberSignature Language="C++ CLI" Value="public:
 HttpRequestException(System::String ^ message);" /> | ||
<MemberSignature Language="F#" Value="new System.Net.Http.HttpRequestException : string -> System.Net.Http.HttpRequestException" Usage="new System.Net.Http.HttpRequestException message" /> | ||
<MemberType>Constructor</MemberType> | ||
<AssemblyInfo> | ||
<AssemblyName>System.Net.Http</AssemblyName> | ||
<AssemblyVersion>4.0.0.0</AssemblyVersion> | ||
<AssemblyVersion>4.1.0.0</AssemblyVersion> | ||
<AssemblyVersion>4.1.1.0</AssemblyVersion> | ||
<AssemblyVersion>4.2.0.0</AssemblyVersion> | ||
<AssemblyVersion>4.2.1.0</AssemblyVersion> | ||
<AssemblyVersion>4.2.2.0</AssemblyVersion> | ||
<AssemblyVersion>5.0.0.0</AssemblyVersion> | ||
</AssemblyInfo> | ||
<AssemblyInfo> | ||
<AssemblyName>netstandard</AssemblyName> | ||
<AssemblyVersion>2.0.0.0</AssemblyVersion> | ||
<AssemblyVersion>2.1.0.0</AssemblyVersion> | ||
</AssemblyInfo> | ||
<Parameters> | ||
<Parameter Name="message" Type="System.String" /> | ||
</Parameters> | ||
<Docs> | ||
<param name="message">A message that describes the current exception.</param> | ||
<summary>Initializes a new instance of the <see cref="T:System.Net.Http.HttpRequestException" /> class with a specific message that describes the current exception.</summary> | ||
<remarks>To be added.</remarks> | ||
</Docs> | ||
</Member> | ||
<Member MemberName=".ctor"> | ||
<MemberSignature Language="C#" Value="public HttpRequestException (string message, Exception inner, HttpStatusCode? statusCode);" /> | ||
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string message, class System.Exception inner, valuetype System.Nullable`1<valuetype System.Net.HttpStatusCode> statusCode) cil managed" /> | ||
<MemberSignature Language="DocId" Value="M:System.Net.Http.HttpRequestException.#ctor(System.String,System.Exception,System.Nullable{System.Net.HttpStatusCode})" /> | ||
<MemberSignature Language="VB.NET" Value="Public Sub New (message As String, inner As Exception, statusCode As Nullable(Of System.Net.HttpStatusCode)" /> | ||
<MemberSignature Language="C++ CLI" Value="public:
 HttpRequestException(System::String ^ message, Exception ^ inner, Nullable<System::Net::HttpStatusCode> statusCode);" /> | ||
<MemberSignature Language="F#" Value="new System.Net.Http.HttpRequestException : string * Exception * Nullable<System.Net.HttpStatusCode> -> System.Net.Http.HttpRequestException" Usage="new System.Net.Http.HttpRequestException (message, inner, statusCode)" /> | ||
<MemberType>Constructor</MemberType> | ||
<AssemblyInfo> | ||
<AssemblyName>System.Net.Http</AssemblyName> | ||
<AssemblyVersion>5.0.0.0</AssemblyVersion> | ||
</AssemblyInfo> | ||
<Parameters> | ||
<Parameter Name="message" Type="System.String" /> | ||
<Parameter Name="inner" Type="System.Exception" /> | ||
</Parameters> | ||
<Docs> | ||
<param name="message">A message that describes the current exception.</param> | ||
<param name="inner">The inner exception.</param> | ||
<param name="statusCode">The HTTP status code.</param> | ||
<summary>Initializes a new instance of the <see cref="HttpRequestException" /> class with a specific message that describes the current exception, an inner exception, and an HTTP status code.</summary> | ||
</Docs> | ||
</Member> | ||
<Member MemberName="StatusCode"> | ||
<MemberSignature Language="C#" Value="public System.Net.HttpStatusCode? StatusCode { get; }" /> | ||
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Nullable`1<valuetype System.Net.HttpStatusCode> StatusCode" /> | ||
<MemberSignature Language="DocId" Value="P:System.Nullable{System.Net.HttpStatusCode}" /> | ||
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property StatusCode As Nullable(Of System.Net.HttpStatusCode)" /> | ||
<MemberSignature Language="C++ CLI" Value="public:
 property Nullable<System::Net::HttpStatusCode> ^ StatusCode { Nullable<System::Net::HttpStatusCode> ^ get(); };" /> | ||
<MemberSignature Language="F#" Value="member this.StatusCode : Nullable<System.Net.HttpStatusCode>" Usage="System.Net.Http.HttpRequestException.StatusCode" /> | ||
<MemberType>Property</MemberType> | ||
<AssemblyInfo> | ||
<AssemblyName>System.Net.Http</AssemblyName> | ||
<AssemblyVersion>5.0.0.0</AssemblyVersion> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @gewarren is there a way to specify that this property is new in .NET Core 5.0? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for the delay, I missed this. I left a suggestion about adding a note in the Remarks. Does that work? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Applies to section would also indicate the versions the property exists. |
||
</AssemblyInfo> | ||
<ReturnValue> | ||
<ReturnType>System.Nullable{System.Net.HttpStatusCode}</ReturnType> | ||
</ReturnValue> | ||
<Docs> | ||
<summary>Gets the HTTP status code to be returned with the exception.</summary> | ||
<value>An HTTP status code if the exception represents a non-successful result, otherwise <c>null</c>.</value> | ||
<remarks> | ||
<format type="text/markdown"><![CDATA[ | ||
|
||
## Remarks | ||
|
||
> [!NOTE] | ||
> This property is new in .NET 5.0. | ||
|
||
]]></format> | ||
</remarks> | ||
</Docs> | ||
alnikola marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</Member> | ||
</Members> | ||
</Type> |
Uh oh!
There was an error while loading. Please reload this page.