Bespoke.DynamicDnsUpdater.WindowsServiceInstallerCustomActions.CustomActions.SetDnsClientTypeId C# (CSharp) Метод

SetDnsClientTypeId() приватный статический Метод

private static SetDnsClientTypeId ( Microsoft.Deployment.WindowsInstaller.Session session, Configuration config ) : void
session Microsoft.Deployment.WindowsInstaller.Session
config System.Configuration.Configuration
Результат void
        private static void SetDnsClientTypeId(Session session, Configuration config)
        {
            string dnsClientTypeId = session.CustomActionData["DNSCLIENTTYPEID"];
            if (!string.IsNullOrWhiteSpace(dnsClientTypeId))
            {
                config.AppSettings.Settings.Remove("DynamicDnsUpdaterClientTypeId");
                config.AppSettings.Settings.Add("DynamicDnsUpdaterClientTypeId", dnsClientTypeId);
            }
        }