Microsoft.Web.Administration.ProtectedConfiguration.GetProvider C# (CSharp) Method

GetProvider() private method

private GetProvider ( string name, bool throwOnError ) : ProtectedConfigurationProvider
name string
throwOnError bool
return ProtectedConfigurationProvider
        internal ProtectedConfigurationProvider GetProvider(string name, bool throwOnError)
        {
            ProtectedConfigurationProvider p = Providers[name];

            if (p == null && throwOnError)
                throw new ServerManagerException(string.Format("The protection provider '{0}' was not found.", name));

            return p;
        }
    }