OS Collection

The OS collection is a dispinterface on a class List object intended to contain class Dictionary object dispinterfaces. Each Dictionary has key/value pairs used to build the <OS> and optionally, the <OSVERSION> elements, respectively. The key name becomes the value of the OS element's VALUE attribute. Optionally, the value associated with the key becomes the VALUE attribute of the OSVERSION element.

Type

IList (VT_DISPATCH)

Contains

IDictionary (VT_DISPATCH)

Default

Empty

Example

' Using Windows Scripting Host and VBScript
Set Impl = CreateObject("Push.Implementation")
Impl.AddOS "WinNT","4.0"
wscript.echo Impl.GetCDFString()

outputs

<IMPLEMENTATION>
 <OS VALUE="winnt">
  <OSVERSION VALUE="4.0"/>
 </OS>
</IMPLEMENTATION>

See Also

Class Dictionary

Class List


© 1997-1998 Microsoft Corporation. All rights reserved.