コード例 #1
0
        /// <summary>
        /// Uses DAT SNMP set
        /// </summary>
        /// <param name="sov">The sov.</param>
        /// <param name="exeTime">The executable time.</param>
        /// <returns></returns>
        private string SnmpSet(SnmpOidValue sov, out int exeTime)
        {
            string result = string.Empty;

            exeTime = 0;
            int startCnt = 0;

            try
            {
                startCnt = Environment.TickCount;
                result   = SNMP.Set(sov).ToString();
                exeTime  = Environment.TickCount - startCnt;
            }
            catch (Exception ex)
            {
                GetLastError = ex.JoinAllErrorMessages();
            }
            return(result);
        }