HttpCompileException Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the HttpCompileException class.
HttpCompileException() |
Initializes a new instance of the HttpCompileException class. |
HttpCompileException(String) |
Initializes a new instance of the HttpCompileException class. |
HttpCompileException(CompilerResults, String) |
Initializes a new instance of the HttpCompileException class. |
HttpCompileException(String, Exception) |
Initializes a new instance of the HttpCompileException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
Initializes a new instance of the HttpCompileException class.
public:
HttpCompileException();
public HttpCompileException ();
Public Sub New ()
Applies to
.NET Framework 4.8.1 және басқа нұсқалар
Өнім | Нұсқалар |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Initializes a new instance of the HttpCompileException class.
public:
HttpCompileException(System::String ^ message);
public HttpCompileException (string message);
new System.Web.HttpCompileException : string -> System.Web.HttpCompileException
Public Sub New (message As String)
Parameters
- message
- String
The exception message to specify when the error occurs.
Applies to
.NET Framework 4.8.1 және басқа нұсқалар
Өнім | Нұсқалар |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Initializes a new instance of the HttpCompileException class.
public:
HttpCompileException(System::CodeDom::Compiler::CompilerResults ^ results, System::String ^ sourceCode);
public HttpCompileException (System.CodeDom.Compiler.CompilerResults results, string sourceCode);
new System.Web.HttpCompileException : System.CodeDom.Compiler.CompilerResults * string -> System.Web.HttpCompileException
Public Sub New (results As CompilerResults, sourceCode As String)
Parameters
- results
- CompilerResults
A CompilerResults containing compiler output and error information.
- sourceCode
- String
The path to the file that contains the source code being compiled when the error occurs.
Remarks
For the sourceCode
parameter, you can pass any string information that is descriptive to the error condition; there are no checks on file or path. The SourceCode property returns the string that was passed as the parameter value. If you use a constructor that does not require the sourceCode
parameter, the SourceCode property is null
.
Applies to
.NET Framework 4.8.1 және басқа нұсқалар
Өнім | Нұсқалар |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Initializes a new instance of the HttpCompileException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public:
HttpCompileException(System::String ^ message, Exception ^ innerException);
public HttpCompileException (string message, Exception innerException);
new System.Web.HttpCompileException : string * Exception -> System.Web.HttpCompileException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The error message that explains the reason for the exception.
- innerException
- Exception
The exception that is the cause of the current exception. If innerException
is not null
, the current exception is raised in a catch
block that handles the inner exception.
Applies to
.NET Framework 4.8.1 және басқа нұсқалар
Өнім | Нұсқалар |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET кері байланысы
.NET — бастапқы коды ашық жоба. Пікір қалдыру үшін сілтемені таңдаңыз: