TrustLevelCollection.Get(Int32) Método

Definición

Obtiene el objeto TrustLevel en el índice especificado.

public:
 System::Web::Configuration::TrustLevel ^ Get(int index);
public System.Web.Configuration.TrustLevel Get(int index);
member this.Get : int -> System.Web.Configuration.TrustLevel
Public Function Get (index As Integer) As TrustLevel

Parámetros

index
Int32

Índice de .TrustLevelCollection

Devoluciones

en TrustLevel el índice especificado.

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar el Get método . Este ejemplo de código forma parte de un ejemplo más grande proporcionado para la TrustLevelCollection clase .

// Display item details of the collection.
for (int i = 0; i < TrustLevelCollection1.Count; i++)
{
  Console.WriteLine("Collection item {0}", i);
  Console.WriteLine("Name: {0}", 
    TrustLevelCollection1.Get(i).Name);
  Console.WriteLine("PolicyFile: {0}", 
    TrustLevelCollection1.Get(i).PolicyFile);
  Console.WriteLine();
}
' Display item details of the collection.
For i As Integer = 0 To (TrustLevelCollection1.Count - 1)
  Console.WriteLine("Collection item {0}", i)
  Console.WriteLine("Name: {0}", _
   TrustLevelCollection1.Get(i).Name)
  Console.WriteLine("PolicyFile: {0}", _
   TrustLevelCollection1.Get(i).PolicyFile)
  Console.WriteLine()
Next i

Se aplica a