Constructors: NewIOException

NewIOException

Creates a new IOException object with the specified Message, HResult, and InnerException.



 Public Function NewIOException(
	  ByRef Message As String,
	  Optional ByVal HResult As Long = COR_E_IO,
	  Optional ByVal ErrorCode As Long = vbDeviceIOError,
	  Optional ByVal InnerException As Exception ) As IOException

Parameters

Message
[ByRef] String. A human-readable error message.
HResult
[ByVal] Optional. Long. The underlying error code.  

Default: COR_E_IO

ErrorCode
[ByVal] Optional. Long. The VB error number.  

Default: vbDeviceIOError

InnerException
[ByVal] Optional. Exception. The exception that caused this exception.

Return Values

IOException -  A new IOException object.

See Also

Project CorLib Overview

Class Constructors Overview