This documentation is archived and is not being maintained.

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
)

Parameters

results
Type: System.CodeDom.Compiler::CompilerResults

A CompilerResults containing compiler output and error information.

sourceCode
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 nullptr.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: