Checks for unrecognized attributes and throws an ProviderException when
the config contains values.
Namespace:
CuttingEdge.LoggingAssembly: CuttingEdge.Logging (in CuttingEdge.Logging.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Protected Sub CheckForUnrecognizedAttributes ( _ name As String, _ config As NameValueCollection _ ) |
| C# |
|---|
protected void CheckForUnrecognizedAttributes( string name, NameValueCollection config ) |
| Visual C++ |
|---|
protected: void CheckForUnrecognizedAttributes( String^ name, NameValueCollection^ config ) |
| JavaScript |
|---|
function checkForUnrecognizedAttributes(name, config); |
Parameters
- name
- Type: System..::.String
The friendly name of the provider.
- config
- Type: System.Collections.Specialized..::.NameValueCollection
A collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider.
Exceptions
| Exception | Condition |
|---|---|
| System.Configuration.Provider..::.ProviderException | Thrown when the config collection is not empty. |