WebBaseEventCollection.Contains(WebBaseEvent) 메서드

정의

지정된 WebBaseEvent 개체가 컬렉션에 들어 있는지 여부를 나타냅니다.

public:
 bool Contains(System::Web::Management::WebBaseEvent ^ value);
public bool Contains (System.Web.Management.WebBaseEvent value);
member this.Contains : System.Web.Management.WebBaseEvent -> bool
Public Function Contains (value As WebBaseEvent) As Boolean

매개 변수

value
WebBaseEvent

검색할 WebBaseEvent 개체입니다.

반환

Boolean

지정된 요소가 컬렉션에 포함되어 있으면 true이고, 그렇지 않으면 false입니다.

예제

다음 코드 예제에서는 Contains 속성을 사용하는 방법을 보여 줍니다.

// Check if the specified event is in the collection.
public static bool ContainsEvent(WebBaseEvent ev)
{
    return events.Contains(ev);
}
' Chek if the specified event is in the collection.
Public Shared Function ContainsEvent(ByVal ev _
As WebBaseEvent) As Boolean
    Return events.Contains(ev)

End Function 'ContainsEvent

적용 대상

추가 정보