Click or drag to resize

HResultHelperFacilityIdShift Field

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

The number of bits to shift an HResult to the left to get the facility (= the assembly) id on the lowest bit.

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

Field Value

Type: Int32
Remarks
See the HRESULT definition at MSDN for more information about the definition of HRESULT values.
Examples
int FacilityId = (ex.HResult & HResultHelper.FacilityIdMask) >> HResultHelper.FacilityIdShift;
See Also