Udostępnij za pośrednictwem


ControlCollection.Add Method

Adds an item to the ICollection.

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

Usage

'Usage
Dim instance As ControlCollection
Dim item As ControlElement

instance.Add(item)

Syntax

'Declaration
Public Sub Add ( _
    item As ControlElement _
)
public void Add (
    ControlElement item
)
public:
virtual void Add (
    ControlElement^ item
) sealed
public final void Add (
    ControlElement item
)
public final function Add (
    item : ControlElement
)

Parameters

  • item
    Specifies the object to add to the collection.

Exceptions

Exception type Condition
NotSupportedException

The ICollection is read-only.

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.