TrustLevelCollection.Set(Int32, TrustLevel) Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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 TrustLevelCollectionw obiekcie .
- trustLevel
- TrustLevel
Element TrustLevel , który ma zostać ustawiony w obiekcie 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 udostępnionego dla klasy TrustLevelCollection.
// Set the TrustLevel object within the collection.
TrustLevelCollection1.Set(1, TrustLevel2);
' Set the TrustLevel object within the collection.
TrustLevelCollection1.Set(1, TrustLevel2)