Share via


UnityTypeElement Class

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Unity Application Block information can be found at the Unity Application Block site.

A ConfigurationElement class used to manage the contents of a <type> node in the configuration file.

Namespace:  Microsoft.Practices.Unity.Configuration
Assembly:  Microsoft.Practices.Unity.Configuration (in Microsoft.Practices.Unity.Configuration.dll)

Syntax

'Declaration
Public Class UnityTypeElement _
    Inherits TypeResolvingConfigurationElement _
    Implements IContainerConfigurationCommand
public class UnityTypeElement : TypeResolvingConfigurationElement, 
    IContainerConfigurationCommand
public ref class UnityTypeElement : public TypeResolvingConfigurationElement, 
    IContainerConfigurationCommand
public class UnityTypeElement extends TypeResolvingConfigurationElement implements IContainerConfigurationCommand

Remarks

Using the Type element in configuration can result in both type mappings and singletons being registered. If a name is specified, it is used for both the type mapping and singleton setting.

Inheritance Hierarchy

System.Object
  System.Configuration.ConfigurationElement
    Microsoft.Practices.Unity.Configuration.TypeResolvingConfigurationElement
      Microsoft.Practices.Unity.Configuration.UnityTypeElement

See Also

UnityTypeElement Members

Microsoft.Practices.Unity.Configuration Namespace