Compartir a través de


ControlCollection.Contains Method

Definition

Overloads

Contains(ControlElement)

Determines whether the collection contains a specific value.

Contains(String)

Determines whether the collection contains the specified name.

Contains(ControlElement)

Determines whether the collection contains a specific value.

public:
 virtual bool Contains(Microsoft::Uii::Common::ControlElement ^ item);
public bool Contains (Microsoft.Uii.Common.ControlElement item);
abstract member Contains : Microsoft.Uii.Common.ControlElement -> bool
override this.Contains : Microsoft.Uii.Common.ControlElement -> bool
Public Function Contains (item As ControlElement) As Boolean

Parameters

item
ControlElement

Specifies the item

Returns

True if the item is found, otherwise false.

Implements

Applies to

Contains(String)

Determines whether the collection contains the specified name.

public:
 bool Contains(System::String ^ controlName);
public bool Contains (string controlName);
member this.Contains : string -> bool
Public Function Contains (controlName As String) As Boolean

Parameters

controlName
String

Specifies the name of the control.

Returns

True if it contains the name, otherwise false.

Applies to