Click or drag to resize

ExceptionExtensionsGetFacilityId Method

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

Gets the facility (= the assembly) identifier part of an HResult.

Namespace:  NerdyDuck.CodedExceptions
Assembly:  NerdyDuck.CodedExceptions (in NerdyDuck.CodedExceptions.dll) Version: 2.0.0+2040dad
Syntax
public static int GetFacilityId(
	this Exception ex
)
View Source

Parameters

ex
Type: SystemException
The Exception to extract the facility identifier from.

Return Value

Type: Int32
The facility identifier.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Exception. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
See the HRESULT definition at MSDN for more information about the definition of HRESULT values.
See Also