Click or drag to resize
DefaultImplementationAttribute Class

Note: This API is now obsolete.

Instructs ObjectFactoryT to use Implementation as a default implementation when an instance of interface or class targeted by this attribute is requested.

Important: The attribute performed registration of a ServiceServiceInterface. The service's registration was backed by ObjectFactoryT, therefore the attribute performed registration in ObjectFactoryT. Since ServiceServiceInterface registration is no longer backed by ObjectFactoryT, the suggested replacement (RegisterImplementationAttribute) does not affect ObjectFactoryT. If registration in object factory is intended, use SetObjectTypeToNewType(Boolean, Boolean).

Inheritance Hierarchy
SystemObject
  SystemAttribute
    CMSDefaultImplementationAttribute

Namespace: CMS
Assembly: CMS.Core (in CMS.Core.dll) Version: 11.0.0
Syntax
C#
[ObsoleteAttribute("Use [assembly: CMS.RegisterImplementation(typeof(ImplementedType), typeof(Implementation), Priority = CMS.Core.RegistrationPriority.Fallback)]", 
	true)]
public sealed class DefaultImplementationAttribute : Attribute

The DefaultImplementationAttribute type exposes the following members.

Constructors
  NameDescription
Public methodDefaultImplementationAttribute
Top
Properties
Remarks
The default implementation can be replaced using RegisterImplementationAttribute in any assembly (unless CanBeReplaced forbids it).
See Also

Reference