ServiceLocatorConfiguration

Name Value
Assembly Catel.Core
Namespace Catel.IoC
Available on .NET Framework 4.5, .NET Framework 4.6
public class ServiceLocatorConfiguration : ConfigurationElementCollection

Base types ConfigurationElementCollection

The IoC configuration element.

Fields

Constructors

ServiceLocatorConfiguration(string name)

Initializes a new instance of the ServiceLocatorConfiguration class.

Parameters

Name Description
name The configuration name.

Properties

CollectionType

Gets the collection type.

Returns

The ConfigurationElementCollectionType of this collection.

Name

Gets or sets the name.

Methods

Configure(IServiceLocator serviceLocator)

Configures an instance of IServiceLocator.

Parameters

Name Description
serviceLocator The instance of IServiceLocator

CreateNewElement()

Creates a new ConfigurationElement.

Returns

A new.

GetElementKey(ConfigurationElement element)

Gets the element key for a specified configuration element when overridden in a derived class.

Parameters

Name Description
element The to return the key for.

Returns

An that acts as the key for the specified.

IsElementName(string elementName)

Determines whether the given is the collection element name.

Parameters

Name Description
param
elementName The element name

Returns

true if is the element name, otherwisefalse.


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion