WebBaseEventCollection.Contains(WebBaseEvent) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
컬렉션에 지정된 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 검색할 개체입니다.
반품
true컬렉션에 지정된 요소가 포함되어 있으면 이고, 그렇지 않으면 . false
예제
다음 코드 예제에서는 메서드를 사용 하는 방법을 보여 있습니다 Contains(WebBaseEvent) .
// 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