Click or drag to resize

HResultHelperCustomHResultMask Field

[This is preliminary documentation and is subject to change.]

A bit mask to check if the HResult is a custom value.

Namespace:  NerdyDuck.CodedExceptions
Assembly:  NerdyDuck.CodedExceptions (in NerdyDuck.CodedExceptions.dll) Version: 2.0.0+2040dad
Syntax
public const int CustomHResultMask = 536870912
View Source

Field Value

Type: Int32
Remarks
See the HRESULT definition at MSDN for more information about the definition of HRESULT values.
Examples
bool IsCustom = (ex.HResult & HResultHelper.CustomHResultMask) > 0;
See Also