static internal string ValidateProtectionProviderAttribute(string protectionProvider, IConfigErrorInfo errorInfo) { if (String.IsNullOrEmpty(protectionProvider)) { throw new ConfigurationErrorsException(SR.GetString(SR.Protection_provider_invalid_format), errorInfo); } return protectionProvider; }