Remove() публичный Метод

public Remove ( string strParamName ) : bool
strParamName string
Результат bool
Пример #1
0
        private static void ClearKeyOptions(CommandLineArgs args, bool bOnlyIfOptionEnabled)
        {
            if (args == null)
            {
                Debug.Assert(false); return;
            }

            if (bOnlyIfOptionEnabled && !Program.Config.Security.ClearKeyCommandLineParams)
            {
                return;
            }

            args.Remove(AppDefs.CommandLineOptions.Password);
            args.Remove(AppDefs.CommandLineOptions.PasswordEncrypted);
            args.Remove(AppDefs.CommandLineOptions.KeyFile);
            args.Remove(AppDefs.CommandLineOptions.PreSelect);
            args.Remove(AppDefs.CommandLineOptions.UserAccount);
        }
Пример #2
0
        private static void ClearKeyOptions(CommandLineArgs args, bool bOnlyIfOptionEnabled)
        {
            if(args == null) { Debug.Assert(false); return; }

            if(bOnlyIfOptionEnabled && !Program.Config.Security.ClearKeyCommandLineParams)
                return;

            args.Remove(AppDefs.CommandLineOptions.Password);
            args.Remove(AppDefs.CommandLineOptions.PasswordEncrypted);
            args.Remove(AppDefs.CommandLineOptions.PasswordStdIn);
            args.Remove(AppDefs.CommandLineOptions.KeyFile);
            args.Remove(AppDefs.CommandLineOptions.PreSelect);
            args.Remove(AppDefs.CommandLineOptions.UserAccount);
        }