Class ShellException
- Namespace
- Microsoft.WindowsAPICodePack.Shell
- Assembly
- Microsoft.WindowsAPICodePack.Shell.dll
An exception thrown when an error occurs while dealing with ShellObjects.
public class ShellException : ExternalException, ISerializable
- Inheritance
-
ShellException
- Implements
- Inherited Members
Constructors
ShellException()
Default constructor.
public ShellException()
ShellException(int)
Initializes an exception with custom message and inner exception.
public ShellException(int errorCode)
Parameters
errorCode
intHRESULT of an operation
ShellException(SerializationInfo, StreamingContext)
Initializes an exception from serialization info and a context.
protected ShellException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfocontext
StreamingContext
ShellException(string)
Initializes an excpetion with a custom message.
public ShellException(string message)
Parameters
message
stringCustom message
ShellException(string, Exception)
Initializes an exception with custom message and inner exception.
public ShellException(string message, Exception innerException)
Parameters
message
stringCustom message
innerException
ExceptionThe original exception that preceded this exception
ShellException(string, int)
Initializes an exception with custom message and error code.
public ShellException(string message, int errorCode)