@Sam light , based on my research, I find the doc indeed has the problem. According to my further detect, I find that the win32 doc is correct.
The following are some explanations:
in C/C++:
unsignedLong->range: 0~4,294,967,295
in C#:
long->range:
-9,223,372,036,854,775,808 ~ 9,223,372,036,854,775,807
uint->range:
0~ 4,294,967,295
Thefore, the doc should be changed to the following:
Based on the microsoft doc Event Log Records, the minium is 0.
public abstract uint? RecordId { get; }
Property Value
Nullable<Int32>
Returns a uint value. This value can be null.
As for long is larger than uint, so it will not affect you to get the recordid currently.
However, Looks like the doc can be improved, I will help to report and improve this doc to be correct.
Thanks for your reporting.
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.