Click or drag to resize

ExceptionExtensionsIsCustomHResult Method

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

Checks if the HResult of the exception is a custom error value.

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

Parameters

ex
Type: SystemException
The exception to check.

Return Value

Type: Boolean
, if ex is a custom value; otherwise, .

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).
See Also