public long Save(string sType, object bTraceBytes) { long ret = 0; try { switch (_traceFile.GeTraceType(sType)) { case TraceType.Binary: ret = _traceFile.WriteData(sType, (byte[])bTraceBytes); break; case TraceType.SingleBinary: ret = _traceFile.WriteSingleData(sType, (byte[])bTraceBytes); break; case TraceType.String: ret = _traceFile.WriteString(sType, (string)bTraceBytes); break; default: //none ret = 0; break; } } catch (Exception) { ret = 0; } return(ret); }