Machine Vision Camera SDK (DotNet) Developer Guide
End If
Console.WriteLine("Destroy device succeed!")
End Sub
End Module
4.2.5 MvCamCtrl.NET::MyCamera::MV_CC_SetEnumValueByString_NET
Set the value of camera Enum type node.
API Definition
int MV_CC_SetEnumValueByString_NET(
string strKey,
string sValue
);
Parameters
strKey
[IN] Node name
sValue
[IN] Camera property string to be set
Return Value
Return MyCamera.MV_OK (0) on success; return Error Code on failure.
Remarks
You can call this API to set specified Enum node after connecting the device. All the node values of
"IEnumeration" in the list can be set via this API. strKey corresponds to the Name column.
Example
C#
using System;
using System.Collections.Generic;
using MvCamCtrl.NET;
using System.Runtime.InteropServices;
using System.IO;
namespace Events
{
class Events
{
public static MyCamera.cbEventdelegateEx EventCallback;
public static MyCamera device;
static void EventCallbackFunc(ref MyCamera.MV_EVENT_OUT_INFO pEventInfo, IntPtr pUser)
{
59
    "