TrustLevelCollection.Set(Int32, TrustLevel) Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Agrega el objeto especificado TrustLevel al TrustLevelCollection objeto en el índice especificado.
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)
Parámetros
- index
- Int32
Ubicación del índice del objeto TrustLevel que se va a establecer en .TrustLevelCollection
- trustLevel
- TrustLevel
que TrustLevel se va a establecer en .TrustLevelCollection
Ejemplos
En el ejemplo de código siguiente se muestra cómo usar el Set método . Este ejemplo de código forma parte de un ejemplo más grande proporcionado para la TrustLevelCollection clase .
// Set the TrustLevel object within the collection.
TrustLevelCollection1.Set(1, TrustLevel2);
' Set the TrustLevel object within the collection.
TrustLevelCollection1.Set(1, TrustLevel2)