Partilhar via


ControlCollection.Contains Method (ControlElement)

Determines whether the collection contains a specific value.

Namespace: Microsoft.Uii.Common
Assembly: Microsoft.Uii.Common (in Microsoft.Uii.Common.dll)

Usage

'Usage
Dim instance As ControlCollection
Dim item As ControlElement
Dim returnValue As Boolean

returnValue = instance.Contains(item)

Syntax

'Declaration
Public Function Contains ( _
    item As ControlElement _
) As Boolean
public bool Contains (
    ControlElement item
)
public:
virtual bool Contains (
    ControlElement^ item
) sealed
public final boolean Contains (
    ControlElement item
)
public final function Contains (
    item : ControlElement
) : boolean

Parameters

  • item
    Specifies the item

Return Value

Type: Boolean
True if the item is found, otherwise false.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

ControlCollection Class
ControlCollection Members
Microsoft.Uii.Common Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.