ErrorInfo collection

Retrieves extended error information regarding methods that deal with multiple objects, such as Populate and SaveChanges on the COMAdminCatalogCollection object, and methods to install, import, or export applications or components on the COMAdminCatalog object.

Use the GetCollection method on a COMAdminCatalogCollection to access the ErrorInfo collection associated with the original collection that has an error.

You must call GetCollection on ErrorInfo immediately after an error occurs; otherwise, the error information is lost.

This collection does not support the Add and Remove methods of the COMAdminCatalogCollection object.

Members

The ErrorInfo collection inherits from the IUnknown interface but does not have additional members.

You can navigate from this collection to any of the following collections:

You can navigate to this collection from every collection except for ErrorInfo, InprocServers, PropertyInfo, RelatedCollectionInfo, Root, and WOWInprocServers.

Properties

The following properties are supported by the COMAdminCatalogObject object within the collection:

ErrorCode

Entry Value
Description The error code for the object or file.
Access ReadOnly
Type String
Default None
Minimum system Windows 2000

 

MajorRef

Entry Value
Description The Key property value for the object that has an error. For example, if a SaveChanges call for a collection fails on a particular object in the collection, the Key property value for that object is reported as the MajorRef value. Use this property to look at the item that fails to update or to find the component or DLL that fails to install.
Access ReadOnly
Type String
Default None
Minimum system Windows 2000

 

MinorRef

Entry Value
Description A precise specification of the item that has an error, such as a property name. If multiple errors occur or in contexts in which this doesn't apply, MinorRef is <Invalid>.
Access ReadOnly
Type String
Default None
Minimum system Windows 2000

 

Name

Entry Value
Description The name of the object or file that has an error. This property is returned when the Key or Name property method is called on an object of this collection.
Access ReadOnly
Type String
Default None
Minimum system Windows 2000

 

See also

COM+ Administration Collections