public static string GetLwipDefForSnmpAccessMode(SnmpAccessMode am) { switch (am) { case SnmpAccessMode.ReadOnly: return(Def_NodeAccessReadOnly); case SnmpAccessMode.ReadWrite: return(Def_NodeAccessReadWrite); case SnmpAccessMode.NotAccessible: return(Def_NodeAccessNotAccessible); case SnmpAccessMode.WriteOnly: return(Def_NodeAccessWriteOnly); default: throw new NotSupportedException("Unknown SnmpAccessMode!"); } }
public static string GetLwipDefForSnmpAccessMode(SnmpAccessMode am) { switch (am) { case SnmpAccessMode.ReadOnly: return Def_NodeAccessReadOnly; case SnmpAccessMode.ReadWrite: return Def_NodeAccessReadWrite; case SnmpAccessMode.NotAccessible: return Def_NodeAccessNotAccessible; case SnmpAccessMode.WriteOnly: return Def_NodeAccessWriteOnly; default: throw new NotSupportedException("Unknown SnmpAccessMode!"); } }