Creating and Configuring COM+ Partitions
Administrators can use COM+ to programmatically create and configure COM+ partitions. In fact, all creation and configuration tasks that an administrator can do from the Component Services or the Active Directory Users and Computers administrative tools can be done by using COM+ collections, objects, and interfaces or through the Active Directory System Interface (ADSI).
Windows XP: The ability to create, configure, or delegate COM+ partitions is not available. The global partition is the only COM+ partition available.
**Windows 2000: ** The COM+ partitions service is not available in Windows 2000.
Note
The COM+ partitions service is not enabled by default. To use the COM+ partitions service, you must enable it through the Component Services administration tool or by changing the PartitionsEnabled property on the LocalComputer collection to True.
To accomplish partition-related tasks, COM+ provides the following programming elements:
- Methods and properties of the ICOMAdminCatalog2 interface on the COMAdminCatalog class:
- CurrentPartition property.
- CurrentPartitionID property.
- CurrentPartitionName property.
- FlushPartitionCache method.
- GetPartitionID method.
- GetPartitionName method.
- GlobalPartitionID property.
- A set of COM+ objects for creating and managing partitions in Active Directory.
- A COM+ registry key, PartitionCache, for changing the partition cache size.
- A set of partitions-related COM+ Administration Collections:
- Partitions collection.
- PartitionUsers collection.
- RolesForPartition collection.
- UsersInPartitionRole collection.
- Properties of other COM+ Administration Collections:
- PartitionID property on the ApplicationInstances collection.
- AppPartitionID property on the Applications collection.
- PartitionDescription, PartitionID, and PartitionName properties on the FilesForImport collection.
- DSPartitionLookupEnabled, LocalPartitionLookupEnabled, and PartitionsEnabled properties on the LocalComputer collection.
- EventClassPartitionID and SubscriberPartitionID properties on the SubscriptionsForComponent collection.
- EventClassPartitionID and SubscriberPartitionID properties on the TransientSubscriptions collection.
Related topics