TrustLevelCollection.Set Method (Int32, TrustLevel)

 

Adds the specified TrustLevel object to the TrustLevelCollection object at the specified index.

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

Public Sub Set (
	index As Integer,
	trustLevel As TrustLevel
)

Parameters

index
Type: System.Int32

The index location of the TrustLevel to be set within the TrustLevelCollection.

trustLevel
Type: System.Web.Configuration.TrustLevel

The TrustLevel to be set within the TrustLevelCollection.

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

' Set the TrustLevel object within the collection.
TrustLevelCollection1.Set(1, TrustLevel2)

.NET Framework
Available since 2.0
Return to top
Show: