Platform SDK: Transaction Server |
[This product will work only on Windows NT 4.0 versions and earlier. For Windows 2000 and later, see COM+ (Component Services).]
The RelatedCollectionInfo collection provides a list of related collections that you can access from a given collection. See the RelatedCollectionInfo topic in the MTS Administrative Reference for a list of properties supported by this collection.
To access and display related collection names:
Dim catalog As Object Dim packages As Object Dim RelatedCollectionInfo As Object Dim collName As Object
On Error GoTo failed
Set catalog = CreateObject("MTSAdmin.Catalog.1") Set packages = catalog.GetCollection("Packages") Set RelatedCollectionInfo =_ packages.GetCollection("RelatedCollectionInfo", "") RelatedCollectionInfo.Populate
For Each collName In RelatedCollectionInfo Debug.Print collName.Name Next Exit Sub
failed: MsgBox "Failure code " + Str$(Err.Number)
End Sub
See Also
MTS Administration Objects, MTS Collection Types, MTS Administration Object Methods, Automating MTS Administration with Visual Basic