TrustLevelCollection.Set(Int32, TrustLevel) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Ajoute l'objet TrustLevel spécifié à l'objet TrustLevelCollection à l'index spécifié.
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)
Paramètres
- index
- Int32
Emplacement d'index du TrustLevel à définir dans la TrustLevelCollection.
- trustLevel
- TrustLevel
TrustLevel à définir dans la TrustLevelCollection.
Exemples
L'exemple de code suivant illustre l'utilisation de la méthode Set. Cet exemple de code fait partie d’un exemple plus grand fourni pour la TrustLevelCollection classe .
// Set the TrustLevel object within the collection.
TrustLevelCollection1.Set(1, TrustLevel2);
' Set the TrustLevel object within the collection.
TrustLevelCollection1.Set(1, TrustLevel2)
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour