GetFeatureString
Top  Previous  Next

Description

Returns the string value of the specified camera feature.


Syntax


[VB]
Value=objActiveGeni.GetFeatureString( Name )


[C/C++]
HRESULT GetFeatureString(bstr Name, bstr* 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 string value of the feature  


Return Values


S_OK  
Success  
E_NOINTERFACE        
Feature does not exist or not available  
E_FAIL  
Failed to read the feature  
 

Example


The following VB example prints the value of the "GainAuto" feature:

MsgBox ActiveGeni1.GetFeatureString("GainAuto")

 
Remarks

Depending on the Type of the feature the Value argument has the following meaning:

Feature Type
Value
Integer
Integer value in form of string
Float
Floating point value in form of string
Boolean
"False" or "True"
Enumerated
Current string value
String
Current string value
Command
Zero value

 
If the currently selected camera does not support the specified feature, the method will generate an error.