Partager via


GlobalObjectCollection.IList.Add Method

Adds an object to the collection.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Private Function Add ( _
    item As Object _
) As Integer Implements IList.Add
int IList.Add(
    Object item
)
private:
virtual int Add(
    Object^ item
) sealed = IList::Add
private abstract Add : 
        item:Object -> int  
private override Add : 
        item:Object -> int
JScript does not support explicit interface implementations.

Parameters

  • item
    Type: Object

    The object to be added.

Return Value

Type: Int32
S_OK if the method succeeded, otherwise an error code.

Implements

IList.Add(Object)

.NET Framework Security

See Also

Reference

GlobalObjectCollection Class

Microsoft.VisualStudio.Shell.Design Namespace