AcManager.Tools.Helpers.WebBrowserHelper.SetBrowserFeatureControlKey C# (CSharp) Метод

SetBrowserFeatureControlKey() публичный статический Метод

public static SetBrowserFeatureControlKey ( [ feature, [ appName, uint value ) : void
feature [
appName [
value uint
Результат void
        public static void SetBrowserFeatureControlKey([NotNull] string feature, [NotNull] string appName, uint value) {
            if (feature == null) throw new ArgumentNullException(nameof(feature));
            if (appName == null) throw new ArgumentNullException(nameof(appName));

            using (var key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Internet Explorer\Main\FeatureControl\" + feature,
                    RegistryKeyPermissionCheck.ReadWriteSubTree)) {
                if (key == null) return;
                Logging.Write($"SetBrowserFeatureControlKey('{appName}', '{value}')");
                key.SetValue(appName, value, RegistryValueKind.DWord);
            }
        }