IPredictorClient::get_bFailOnUnknownInputAttributes, put_bFailOnUnknownInputAttributes Property [C++]

The bFailOnUnknownInputAttributes property is a read/write property that controls whether the Predict method continues or fails when encountering unknown input attributes.

Definition

[C++]

Get method:

HRESULT IPredictorClient::get_bFailOnUnknownInputAttributes(VARIANT_BOOL*pbVal);

Put method:

HRESULT IPredictorClient::put_bFailOnUnknownInputAttributes(VARIANT_BOOLpbval);

[Visual Basic]

Property bFailOnUnknownInputAttributes As Boolean

Parameters

  • pbVal[C++]
    [in] When putting the property, a VARIANT_BOOL that indicates whether the Predict method should fail on unknown input attributes. The default value is False.
    [out, retval] When getting the property, a pointer to a VARIANT_BOOL indicating whether the Predict method fails on unknown input attributes.

[Visual Basic] None.

[C++]

Return Values

These methods return an HRESULT indicating whether they completed successfully. See the following Error Values section for more details.

Error Values

[C++] These methods return S_OK (0x00000000) to indicate success and standard COM HRESULT 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, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

[Visual Basic] This property 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

This property is used as a debugging flag. By default, the Predict method ignores unknown input attributes. Setting this property to True causes the Predict method to fail when unknown input attributes are encountered.

When debugging, set a default value for this property in the global.asa file to avoid setting the value for each Predict method call.

Load the prediction model using the LoadModelFromDB or LoadModelFromFile methods prior to accessing this property.

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

[C++]

The pbVal parameter contains valid data only if the property is accessed successfully.

See Also

[C++]PredictorClient Object

[C++]IPredictorClient::Predict

[Visual Basic]PredictorClient Object

[Visual Basic]PredictorClient.Predict

Copyright © 2005 Microsoft Corporation.
All rights reserved.