BuildProvider.RegisterBuildProvider Method (String, Type)

.NET Framework (current version)
 

Registers a build provider.

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

Public Shared Sub RegisterBuildProvider (
	extension As String,
	providerType As Type
)

Parameters

extension
Type: System.String

The file-name extension that the build provider is for.

providerType
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
Available since 4.0
Return to top
Show: