GetFeatureList
Top  Previous  Next

Description

Returns the array of strings containing the names of camera features dependent on the specified feature.


Syntax


[VB]
Value=objActiveUSB.GetFeatureDependents( Name )


[C/C++]
HRESULT GetFeatureList( bstr Name, VARIANT* pList );


Data Types
[VB]

Name: String
Return value
: Variant (SAFEARRAY)


Parameters
[C/C++]

Name [in]  
Name of the feature for which the list of dependent features is requested.  
 
pList [out,retval]  
Pointer to the SAFEARRAY of strings containing dependent features.  


Return Values


S_OK  
Success  
E_NOINTERFACE  
Category is not supported by the camera  
E_FAIL  
Failure.  


Example


This VB example retrieves the list of features dependent on the "TriggerSelector" feature:

FeatureLst = ActiveUSB1.GetFeatureDependents("TriggerSelector")
 

Remarks


Use this method to determine the features whose values may change when the value of the specified feature is changing. Your application can use it to update the values of the controls linked to the dependant features.

Note that in C/C++ applications it is required to call SafeArrayDestroy() to delete the SAFEARRAY returned by GetFeatureDependents.