IsFeatureAvailable
Top  Previous  Next

Description

Checks the availability of the specified camera feature.


Syntax


[VB]
Value=objActiveUSB.IsFeatureAvailable ( Name ) 


[C/C++]
HRESULT IsFeatureAvailable( bstr Name, BOOL pValue );


Data Types
[VB]

Name: String
Return value
: String


Parameters
[C/C++]

Name [in]  
String specifying the name of the feature  
pValue [out, retval]  
Pointer to the boolean value which is TRUE if the feature is available and FALSE otherwise  


Return Values


S_OK  
Success  
E_FAIL  
Failure  
 

Example


This VB example uses the availability of the feature to enable or disable a slider:

if IsFeatureAvailable("ExposureTimeAbs") then  
Slider1.Enable(TRUE)  
else  
Slider1.Enable(FALSE)  
endif  
      
Remarks


A feature is considered available when its access flag is RO or RW. See GetFeatureAccess for more details.