Error Provider::SetError

Sets the MPF error variable to the HRESULT and description for the current error and raises it to a provisioning engine, which propagates the error back to the calling procedure. Used by Microsoft Provisioning Framework (MPF).

For example, a CreateAccount procedure calls another procedure, CheckDatabase, to set up a user in a database. If the user already exists, CheckDatabase generates an error. In this situation, a call to SetError throws the error back to CreateAccount.

 Arguments
 Remarks
 Schema Definition
 Sample Code
 Applies To