WebBaseEventCollection.Contains(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.
Indicates whether the collection contains the specified WebBaseEvent object.
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
Parameters
- value
- WebBaseEvent
The WebBaseEvent object to search for.
Returns
true
if the collection contains the specified element; otherwise, false
.
Examples
The following code example shows how to use the Contains property.
// 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
Applies to
See also
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET