BuildProviderCollection.Add Method (BuildProvider)

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

Public Sub Add (
	buildProvider As BuildProvider
)

Parameters

buildProvider
Type: System.Web.Configuration.BuildProvider

A BuildProvider object.

If the BuildProvider object already exists in the collection, the build provider is ignored.

The following code example demonstrates how to use the Add method. This code example is part of a larger example provided for the BuildProviderCollection class.

' Create a new BuildProvider.
Dim myBuildProvider As BuildProvider = _
  New BuildProvider(".myres", _
  "System.Web.Compilation.ResourcesBuildProvider")

' Add an BuildProvider to the collection.
configSection.BuildProviders.Add(myBuildProvider)

.NET Framework
Available since 2.0
Return to top
Show: