Click or drag to resize

CodedArgumentNullOrWhiteSpaceException Constructor (Int32, String)

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

Initializes a new instance of the CodedArgumentNullOrWhiteSpaceException class with a specified HRESULT value and the name of the parameter that causes this exception.

Namespace:  NerdyDuck.CodedExceptions
Assembly:  NerdyDuck.CodedExceptions (in NerdyDuck.CodedExceptions.dll) Version: 2.0.0+2040dad
Syntax
public CodedArgumentNullOrWhiteSpaceException(
	int hresult,
	string paramName
)
View Source

Parameters

hresult
Type: SystemInt32
The HRESULT that describes the error.
paramName
Type: SystemString
The name of the parameter that caused the exception.
Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "Argument cannot be null oe empty." This message takes into account the current system culture.

This constructor initializes the ParamName property of the new instance using the paramName parameter. The content of paramName is intended to be understood by humans.

See the HRESULT definition at MSDN for more information about the definition of HRESULT values.

See Also