Partilhar via


ControlCollection.Contains Method (String)

Determines whether the collection contains the specified name.

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

Usage

'Usage
Dim instance As ControlCollection
Dim controlName As String
Dim returnValue As Boolean

returnValue = instance.Contains(controlName)

Syntax

'Declaration
Public Function Contains ( _
    controlName As String _
) As Boolean
public bool Contains (
    string controlName
)
public:
bool Contains (
    String^ controlName
)
public boolean Contains (
    String controlName
)
public function Contains (
    controlName : String
) : boolean

Parameters

  • controlName
    Specifies the name of the control.

Return Value

Type: Boolean
True if it contains the name, 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.