DeleteFeature
Top  Previous  Next

Description

Deletes the feature created by CreateFeature and frees the memory associated with it


Syntax


[C++]
int
 DeleteFeature (const char* name);


Parameters
[C/C++]
 
[in] const char* name  
Name of the feature to be deleted. Should not be NULL or empty.  


Return Values


S_OK  
Success  
E_FAIL  
Failure  
E_NOINTERFACE  
Feature does not exist  
 

Example


This fragment of the code disconnects the camera and deletes two previously created features:

m_pCamera->Disconnect();  
m_pCamera->DeleteFeature("TestFeatureInt")  
m_pCamera->DeleteFeature("TestFeatureEnum")  


Remarks


Use this method to delete previously created features before creating a new set of features. Note that the camera must be in the disconnected state in order for DeleteFeature to work.

This method can also be used for deleting a category created by CreateCategory.