Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpCompileException Constructor (CompilerResults, String)

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the HttpCompileException class.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

public HttpCompileException(
	CompilerResults results,
	string sourceCode


Type: System.CodeDom.Compiler.CompilerResults

A CompilerResults containing compiler output and error information.

Type: System.String

The path to the file that contains the source code being compiled when the error occurs.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft