Class StaticUrlProvider

Inheritance
System.Object
StaticUrlProvider
Namespace: Mediachase.Commerce.Website
Assembly: Mediachase.Commerce.Website.dll
Version: 10.8.0
Syntax
[Obsolete("This class should no longer be used. Use UrlResolver instead. Will remain at least until April 2016.")]
public class StaticUrlProvider : UrlProvider

Constructors

StaticUrlProvider()

Declaration
public StaticUrlProvider()

Methods

GetUrl(String)

Gets the URL.

Declaration
[Obsolete("This method should no longer be used. Use UrlResolver instead. Will remain at least until April 2016.")]
public override string GetUrl(string commandName)
Parameters
Type Name Description
System.String commandName

Name of the command.

Returns
Type Description
System.String
Overrides

GetUrl(String, Object[])

Gets the URL.

Declaration
[Obsolete("This method should no longer be used. Use UrlResolver instead. Will remain at least until April 2016.")]
public override string GetUrl(string commandName, params object[] commandParams)
Parameters
Type Name Description
System.String commandName

Name of the command.

System.Object[] commandParams

The command params.

Returns
Type Description
System.String
Overrides

Initialize(String, NameValueCollection)

Initializes the provider.

Declaration
public override void Initialize(string name, NameValueCollection config)
Parameters
Type Name Description
System.String name

The friendly name of the provider.

System.Collections.Specialized.NameValueCollection config

A collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider.

Exceptions
Type Condition
System.ArgumentNullException

The name of the provider is null.

System.ArgumentException

The name of the provider has a length of zero.

System.InvalidOperationException

An attempt is made to call System.Configuration.Provider.ProviderBase.Initialize(System.String,System.Collections.Specialized.NameValueCollection) on a provider after the provider has already been initialized.