Table of Contents

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 int

HRESULT of an operation

ShellException(SerializationInfo, StreamingContext)

Initializes an exception from serialization info and a context.

protected ShellException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

ShellException(string)

Initializes an excpetion with a custom message.

public ShellException(string message)

Parameters

message string

Custom message

ShellException(string, Exception)

Initializes an exception with custom message and inner exception.

public ShellException(string message, Exception innerException)

Parameters

message string

Custom message

innerException Exception

The original exception that preceded this exception

ShellException(string, int)

Initializes an exception with custom message and error code.

public ShellException(string message, int errorCode)

Parameters

message string

Custom message

errorCode int

HResult error code