dotnet / dotnet/dotnet-api-docs
protected Get not Public Get
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
As Per "public class Exception" definition its showing "protected int HResult { get; set; }" so why at here its show as public get? and also I am not able to access ex.HResult in catch block. Please anyone clarify me.
I know in latest framework changed this things but I changed the view of .NETFramework v4.0 then also its show same definition.
https://docs.microsoft.com/en-us/dotnet/api/system.exception.hresult?redirectedfrom=MSDN&view=netframework-4.0
Note: I used .NETFramework v4.0
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: e2fc61d0-0819-397a-e3b3-e3c97b7f646f
* Version Independent ID: 5705fae4-fefe-68a7-ff28-9ce04fe5116c
* Content: [Exception.HResult Property (System)](https://docs.microsoft.com/en-us/dotnet/api/system.exception.hresult?redirectedfrom=MSDN&view=netframework-4.8#System_Exception_HResult)
* Content Source: [xml/System/Exception.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System/Exception.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.