IProfileService2::get_Errors Property [C++]

The Errors property is a read-only ADO Errors object that stores the collection of errors encountered in the last Profiles resource operation.

Definition

[C++]

HRESULT IProfileObject::get_Errors(Errors**ppErrors);

[Visual Basic]

Property Errors As Object

Parameters

  • ppErrors[C++]
    [out, retval] The address of a pointer to an Errors object.

[Visual Basic] None.

[C++]

Return Values

This method returns an HRESULT indicating whether it completed successfully.

Remarks

The Errors property collects all errors generated by a ProfileService object operation, including those that emerge from the underlying technology.

If the error is coming from the underlying data store providers (such as OLE DB Provider for SQL Server and OLE DB Provider for Microsoft Directory Services) in some cases only the Number and Source properties of the Error object are set.

For information about standard COM errors, see Standard COM Errors.

The following ADO Errors methods and properties are supported:

  • Clear
  • Count
  • Item
  • _NewEnum

The following ADO Error methods and properties are supported:

  • Description
  • HelpFile
  • Number
  • Source

Call the Initialize method before you access the Errors property.

See Also

[C++]ProfileObject Object

[C++]ProfileService Object

[Visual Basic]ProfileObject Object

[Visual Basic]ProfileService Object

Copyright © 2005 Microsoft Corporation.
All rights reserved.