Table of Contents

Class AssemblyNotFoundException

Namespace
Cobilas.Exceptions
Assembly
Cobilas.Core.dll

The exception that is thrown when an assembly cannot be found.

[Serializable]
public class AssemblyNotFoundException : Exception, ISerializable
Inheritance
AssemblyNotFoundException
Implements
Inherited Members
Extension Methods

Remarks

This exception is thrown when attempting to load or reference an assembly that does not exist or cannot be located in the application domain.

Constructors

AssemblyNotFoundException(SerializationInfo, StreamingContext)

Initializes a new instance of the Exception class with serialized data.

[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051")]
protected AssemblyNotFoundException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Exceptions

ArgumentNullException

info is null.

SerializationException

The class name is null or HResult is zero (0).

AssemblyNotFoundException(string)

Initializes a new instance of the AssemblyNotFoundException class with the specified assembly name.

public AssemblyNotFoundException(string assemblyName)

Parameters

assemblyName string

The name of the assembly that could not be found.

AssemblyNotFoundException(string, Exception)

Initializes a new instance of the AssemblyNotFoundException class with the specified assembly name and a reference to the inner exception that is the cause of this exception.

public AssemblyNotFoundException(string assemblyName, Exception inner)

Parameters

assemblyName string

The name of the assembly that could not be found.

inner Exception

The exception that is the cause of the current exception.

Methods

GetObjectData(SerializationInfo, StreamingContext)

When overridden in a derived class, sets the SerializationInfo with information about the exception.

[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051")]
public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Exceptions

ArgumentNullException

The info parameter is a null reference (Nothing in Visual Basic).