Microsoft.OfficeProPlus.InstallGenerator.Implementation.OfficeLocalInstallManager.GetRegistryValue C# (CSharp) Method

GetRegistryValue() public method

public GetRegistryValue ( RegistryKey regKey, string property ) : string
regKey Microsoft.Win32.RegistryKey
property string
return string
        public string GetRegistryValue(RegistryKey regKey, string property)
        {
            if (regKey != null)
            {
                if (regKey.GetValue(property) == null) return "";
                return regKey.GetValue(property).ToString();
            }
            return "";
        }
    }