PredictorServiceSiteAdmin.DeleteModel

Ee811351.c++_on(en-US,CS.10).gifEe811351.vb_off(en-US,CS.10).gif

Use this method to delete the specified model.

Definition

Sub DeleteModel(sModelName As String)

Parameters

sModelName

A String that contains the name of the model to delete.

Return Values

None.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

Use the slModels property of the PredictorServiceAdmin object to retrieve a list of the available models.

Deleting a model causes its entry in the PredictorModels table in the Data Warehouse to be removed.

Passing an empty string for the model name will result in an invalid argument error.

Connect to the Data Warehouse using the Init method before calling the DeleteModel method.

Use the Start method of the PredModelBuilder object to create a new model.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

See Also

PredictorServiceAdmin Object

PredictorServiceSiteAdmin Object

PredModelBuilder Object


All rights reserved.