Initialize
This method initializes the OracleSiteMapProvider instance with the property values specified in the ASP.NET application configuration file (web.config).
Declaration
// C# Public override void Initialize(string name, NameValueCollection config);
Parameters
-
nameThe name of the
OracleSiteMapProviderinstance to initialize. -
configA
Systems.Collections.Specialized.NameValueCollectionobject that contains the names and values of configuration options for the site map provider.
Exceptions
ArgumentNullException - The config parameter is null.
InvalidOperationException - A SiteMapProvider is already initialized.
ProviderException - One of the following exists:
-
The
connectionStringNameattribute is null or empty in the configuration file. -
The connection string corresponding to the value of the
connectionStringNameattribute is null or empty. -
The configuration file contains an unrecognized attribute.
-
An error occurred during initialization of the provider.
Remarks
The Initialize method is not intended to be called directly by the application.