Click or drag to resize
ServiceServiceInterfaceForObjectTypeObjectType Method

Note: This API is now obsolete.

Returns service interface as a static singleton for the given object type

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 11.0.0
Syntax
C#
[ObsoleteAttribute("This functionality is no longer supported by Service class. The CMS.Core.ObjectFactory<ServiceInterface>.StaticSingleton<ObjectType>() can be a suitable replacement if ServiceInterface is actually managed by ObjectFactory. However, system services are no longer managed by ObjectFactory.", 
	true)]
public static ServiceInterface ForObjectType<ObjectType>()

Type Parameters

ObjectType

Return Value

Type: ServiceInterface
See Also