SenseNet.ContentRepository.Repository.GetStringArrayConfigValue C# (CSharp) Method

GetStringArrayConfigValue() private static method

private static GetStringArrayConfigValue ( string key ) : string[]
key string
return string[]
        private static string[] GetStringArrayConfigValue(string key)
        {
            var settings = ConfigurationManager.GetSection(PORTALSECTIONKEY) as NameValueCollection;
            if (settings != null)
            {
                var configString = settings[key];
                if (!string.IsNullOrEmpty(configString))
                {
                    return configString.Split(new[] { ';', ',' }, StringSplitOptions.RemoveEmptyEntries);
                }
            }

            return new string[0];
        }
    }