WebBaseEventCollection.IndexOf(WebBaseEvent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the index of the specified WebBaseEvent object.
public:
int IndexOf(System::Web::Management::WebBaseEvent ^ value);
public int IndexOf (System.Web.Management.WebBaseEvent value);
member this.IndexOf : System.Web.Management.WebBaseEvent -> int
Public Function IndexOf (value As WebBaseEvent) As Integer
Parameters
- value
- WebBaseEvent
The WebBaseEvent object for which to obtain the index.
Returns
The index of the specified WebBaseEvent object within the collection.
Exceptions
The object is not in the collection.
Examples
The following code example shows how to use the IndexOf property.
// Get the index of the specified event.
public static int GetIndexOf(WebBaseEvent ev)
{
return events.IndexOf(ev);
}
' Get the index of the specified event.
Public Shared Function GetIndexOf(ByVal ev _
As WebBaseEvent) As Integer
Return events.IndexOf(ev)
End Function 'GetIndexOf
Applies to
See also
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.