This topic has not yet been rated - Rate this topic

ErrorInfo collection

Applies to: desktop apps only

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.

Related Collections

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

DescriptionThe error code for the object or file.
AccessReadOnly
TypeString
DefaultNone
Minimum systemWindows 2000

 

MajorRef

DescriptionThe 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.
AccessReadOnly
TypeString
DefaultNone
Minimum systemWindows 2000

 

MinorRef

DescriptionA 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>.
AccessReadOnly
TypeString
DefaultNone
Minimum systemWindows 2000

 

Name

DescriptionThe 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.
AccessReadOnly
TypeString
DefaultNone
Minimum systemWindows 2000

 

See also

COM+ Administration Collections

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ