TrustLevelCollection.Add Method (TrustLevel)

 

Adds a TrustLevel object to the collection.

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

Public Sub Add (
	trustLevel As TrustLevel
)

Parameters

trustLevel
Type: System.Web.Configuration.TrustLevel

The TrustLevel to add to the collection.

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

' Add a new TrustLevel to the collection.
TrustLevelCollection1.Add(New TrustLevel("Level1", "Level1.config"))

.NET Framework
Available since 2.0
Return to top
Show: