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
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
AssemblyNotFoundException(string)
Initializes a new instance of the AssemblyNotFoundException class with the specified assembly name.
public AssemblyNotFoundException(string assemblyName)
Parameters
assemblyNamestringThe 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
assemblyNamestringThe name of the assembly that could not be found.
innerExceptionThe 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
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
- ArgumentNullException
The
infoparameter is a null reference (Nothingin Visual Basic).