Class StaticUrlProvider

Provide page mapping for Commerce pages.

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

Constructors

StaticUrlProvider()

Declaration
public StaticUrlProvider()

Properties

Instance

Gets the global instance for this URL provider.

Declaration
[Obsolete("This property should no longer be used. Will remain at least until April 2016.")]
public static StaticUrlProvider Instance { get; }
Property Value
Type Description
StaticUrlProvider

The instance.

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.