Previous in Contents Next in Contents

Codebases Collection

The Codebases collection is a dispinterface on a class List object intended to contain ICodebase dispinterfaces. When the parent object’s CDF string is assembled, the GetCDFString method is invoked on each interface to fetch the object's CDF string contribution.

Type

IList (VT_DISPATCH)

Contains

ICodebase (VT_DISPATCH)

Default

Empty

Example

' Using Windows Scripting Host and VBScript
Set Implementation = CreateObject("Push.Implementation")
Implementation.AddCodebase "http://someserver/code", "C:\code"
For Each Codebase in Implementation.Codebases 
 wscript.echo Codebase.GetCDFString
Next
wscript.echo Impl.GetCDFString

outputs

<CODEBASE HREF=&quothttp://someserver/code"
FILENAME="C:\code"/>
<Implementation>
 <CODEBASE HREF=&quothttp://someserver/code"
 FILENAME="C:\code"/>
</Implementation>

See Also

Class List

Class Codebase


© 1997-2000 Microsoft Corporation. All rights reserved.