AddDependency Method

The AddDependency method creates an instance of the Dictionary class. It then sets the new object's "type" key to the string passed as an argument to the method, adds the object's dispinterface to the Dependencies collection, and then returns it.

VBScript Syntax

ISoftwarePackage.AddDependency type

Parameters

type

A string specifying the value for the ACTION attribute of the <DEPENDENCY> element.

Return Value

The  IDictionary interface on the Dictionary object defining the dependency added to the collection.

Example

SoftPkg.AddDependency "value"

See Also

Dependencies Collection

Class Dictionary


© 1997-1998 Microsoft Corporation. All rights reserved.