HttpCompileException.HttpCompileException(CompilerResults, String) Constructor

This constructor 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
)
public HttpCompileException (
	CompilerResults results, 
	String sourceCode
)
public function HttpCompileException (
	results : CompilerResults, 
	sourceCode : String
)
Not applicable.

Parameters

results

A CompilerResults containing compiler output and error information.

sourceCode

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 a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: