WebBaseEventCollection.Item[Int32] Property

Definition

Gets the WebBaseEvent object at the specified index.

public System.Web.Management.WebBaseEvent this[int index] { get; }

Parameters

index
Int32

The collection index of the WebBaseEvent object you want to retrieve.

Property Value

The WebBaseEvent object at the specified index.

Exceptions

The specified index is outside the range of the collection.

Examples

The following code example shows how to use the Item[] property.

// Get the event with the specified index.
public static WebBaseEvent GetItem(int index)
{
    return events[index];
}

Applies to

Producto Versiones
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also