예제 #1
0
        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!");
            }
        }
예제 #2
0
파일: LwipSnmp.cs 프로젝트: plocklsh/lwip
		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!");
			}
		}