TrustLevelCollection.Set(Int32, TrustLevel) Metoda

Definicja

Dodaje określony TrustLevel obiekt do TrustLevelCollection obiektu w określonym indeksie.

public:
 void Set(int index, System::Web::Configuration::TrustLevel ^ trustLevel);
public void Set (int index, System.Web.Configuration.TrustLevel trustLevel);
member this.Set : int * System.Web.Configuration.TrustLevel -> unit
Public Sub Set (index As Integer, trustLevel As TrustLevel)

Parametry

index
Int32

Lokalizacja indeksu, TrustLevel która ma zostać ustawiona w obiekcie TrustLevelCollection.

trustLevel
TrustLevel

Element TrustLevel , który ma zostać ustawiony w elemecie TrustLevelCollection.

Przykłady

W poniższym przykładzie kodu pokazano, jak używać Set metody . Ten przykład kodu jest częścią większego przykładu podanego TrustLevelCollection dla klasy.

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

Dotyczy

Zobacz też