This documentation is archived and is not being maintained.

BuildProvider::CodeCompilerType Property

Represents the compiler type used by a build provider to generate source code for a custom file type.

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

public:
virtual property CompilerType^ CodeCompilerType {
	CompilerType^ get ();
}

Property Value

Type: System.Web.Compilation::CompilerType
A read-only System.Web.Compilation::CompilerType representing the code generator, code compiler, and compiler settings used to build source code for the virtual path. The base class returns nullptr.

Use the CodeCompilerType property to provide the settings for compiling source code for an implementation of BuildProvider. The CodeCompilerType property is nullptr if the build provider does not require a specific code language for generating and compiling source code.

To set the value for a CompilerType object within a build provider implementation, use the GetDefaultCompilerType or GetDefaultCompilerTypeForLanguage method.

The CodeDomProviderType property specifies the CodeDomProvider implementation that is used to generate and compile source code for a build provider. The CompilerParameters property defines the settings that are used to compile the source code into an assembly.

The following code example illustrates a simple build provider implementation, inheriting from the abstract BuildProvider base class. The build provider overrides the CodeCompilerType, GetGeneratedType, and GenerateCode members of the base class.

No code example is currently available or this language may not be supported.

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: