Share via


IStringCollection interface

Represents an ordered list of strings.

Members

The IStringCollection interface inherits from the IDispatch interface. IStringCollection also has these types of members:

  • Methods
  • Properties

Methods

The IStringCollection interface has these methods.

Method Description
Add

Adds an item to the collection.

Clear

Removes all the elements from the collection.

Copy

Creates a deep read/write copy of the collection.

Insert

Inserts an item into the collection at the specified position.

RemoveAt

Removes the item at the specified index from the collection.

 

Properties

The IStringCollection interface has these properties.

Property Access type Description

_NewEnum

Read-only

Gets an IEnumVARIANT interface that can be used to enumerate the collection.

Count

Read-only

Gets the number of elements in the collection.

Item

Read/write

Gets or sets a string in the collection.

ReadOnly

Read-only

Gets a Boolean value that indicates whether the collection is read-only.

 

Remarks

This interface can be instantiated by using the StringCollection coclass. Use the Microsoft.Update.StringColl program identifier to create the object.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional with SP3 [desktop apps only]

Minimum supported server

Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only]

Header

Wuapi.h

IDL

Wuapi.idl

Library

Wuguid.lib

DLL

Wuapi.dll

IID

IID_IStringCollection is defined as EFF90582-2DDC-480F-A06D-60F3FBC362C3