EventMappingSettingsCollection.IndexOf Method (String)

 

Returns the index of the specified EventMappingSettings object.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

member IndexOf : 
        name:string -> int

Parameters

name
Type: System.String

The name of an EventMappingSettings object in the collection.

Return Value

Type: System.Int32

The index of the specified EventMappingSettings object, or -1 if the object is not found in the collection.

The following code example shows how to use the IndexOf method. This code example is part of a larger example provided for the HealthMonitoringSection class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: