This documentation is archived and is not being maintained.

BuildProvider::RegisterBuildProvider Method

Registers a build provider.

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

static void RegisterBuildProvider(
	String^ extension, 
	Type^ providerType


Type: System::String
The file-name extension that the build provider is for.
Type: System::Type
The build provider class.

You can use this method to register build providers instead of defining them in the Web.config file. For more information about build providers, see the BuildProvider class and buildProviders Element for compilation (ASP.NET Settings Schema).

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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