GetFeatureType
Top  Previous  Next

Description

Returns the type of the specified camera feature.


Syntax


[VB]
Value=objActiveUSB.GetFeatureType ( Name )


[C/C++]
HRESULT GetFeatureType(bstr Name, bstr* pType );


Data Types
[VB]

Name: String
Return value: String


Parameters
[C/C++]

Name [in]  
String specifying the name of the feature  
pType [out, retval]  
Pointer to a string specifying the type of the feature  


Return Values


S_OK  
Success  
E_NOINTERFACE        
Feature does not exist or not available  
E_FAIL  
Failure  
 

Example


This VB example prints the type of the specified feature:
 
MsgBox ActiveUSB1.GetFeatureType("ExposureAuto")  

Remarks


Depending on the type of the feature the method returns the following string values:

Feature Type
Value
Integer
"Int"
Float
"Float"
Boolean
"Bool"
Enumerated
"Enum"
String
"String"
Command
"Command"
Feature category
"Category"
Unrecognized type
"Unknown"