| 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 PropertyInfo collection stores information about each property in a collection. See the PropertyInfo topic in the MTS Administrative Reference for more information about this collection.
 To access and list the name of each property in a collection:
To access and list the name of each property in a collection:
Dim catalog As Object Dim packages As Object Dim propertyInfo As Object Dim property As Object
On Error GoTo failed
Set catalog = CreateObject("MTSAdmin.Catalog.1")
Set packages = catalog.GetCollection("Packages")
Set propertyInfo = packages.GetCollection("PropertyInfo", "")
propertyInfo.Populate
For Each property In propertyInfo
        Debug.Print property.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