Initializes the provider.

Namespace:  CuttingEdge.Logging
Assembly:  CuttingEdge.Logging (in CuttingEdge.Logging.dll)

Syntax

Visual Basic (Declaration)
Public Overrides Sub Initialize ( _
	name As String, _
	config As NameValueCollection _
)
C#
public override void Initialize(
	string name,
	NameValueCollection config
)
Visual C++
public:
virtual void Initialize(
	String^ name, 
	NameValueCollection^ config
) override
JavaScript
function initialize(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.

Remarks

Inheritors should call base.Initialize before performing implementation-specific provider initialization and call CheckForUnrecognizedAttributes(String, NameValueCollection) last.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown when the name of the provider is null or when the config is null.
System..::.ArgumentExceptionThrown when the name of the provider has a length of zero.
System..::.InvalidOperationExceptionThrown when an attempt is made to call Initialize on a provider after the provider has already been initialized.
System.Configuration.Provider..::.ProviderExceptionThrown when the config contains unrecognized attributes.

See Also