public class EntryPointNotFoundException : TypeLoadException
Object
Exception
SystemException
TypeLoadException
EntryPointNotFoundException
mscorlib
RuntimeInfrastructure
Represents the error that occurs when an attempt to load a Assembly fails due to the absence of an entry point.
[Note: In C#, an entry point is defined through the Main() method. For additional information about entry points, see Partition II of the CLI Specification.]
System Namespace
EntryPointNotFoundException Constructors
EntryPointNotFoundException() Constructor
EntryPointNotFoundException(System.String) Constructor
EntryPointNotFoundException(System.String, System.Exception) Constructor
public EntryPointNotFoundException();
Constructs and initializes a new instance of the EntryPointNotFoundException class.
This constructor initializes the System.EntryPointNotFoundException.Message property of the new instance to a system-supplied message that describes the error, such as "Entry point was not found." This message takes into account the current system culture.The System.EntryPointNotFoundException.InnerException property of the new instance is initialized to
null
.
System.EntryPointNotFoundException Class, System Namespace
public EntryPointNotFoundException(string message);
Constructs and initializes a new instance of the EntryPointNotFoundException class with a specified error message.
- message
- A String that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
This constructor initializes the System.EntryPointNotFoundException.Message property of the new instance using message. If message isnull
, the System.EntryPointNotFoundException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.The System.EntryPointNotFoundException.InnerException property of the new instance is initialized to
null
.
System.EntryPointNotFoundException Class, System Namespace
public EntryPointNotFoundException(string message, Exception inner);
Constructs and initializes a new instance of the EntryPointNotFoundException class.
- message
- A String that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
- inner
- An instance of Exception that is the cause of the current exception. If inner is not a
null
reference, the current exception was raised in a catch block handling inner .
This constructor initializes the System.EntryPointNotFoundException.Message property of the new instance using message and the System.EntryPointNotFoundException.InnerException property using inner. If message isnull
, the System.EntryPointNotFoundException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.[Note: For more information on inner exceptions, see System.Exception.InnerException.]
System.EntryPointNotFoundException Class, System Namespace