Click or drag to resize
ObjectFactoryTSetDefaultObjectTypeToNewType Method
Sets the default object type created by the factory to the given type

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 8.2.23
Syntax
C#
public static void SetDefaultObjectTypeTo<NewType>(
	bool canBeReplaced = false,
	bool replaceExisting = true
)
where NewType : new(), T

Parameters

canBeReplaced (Optional)
Type: SystemBoolean
If true, the given default object type can be replaced by other object type
replaceExisting (Optional)
Type: SystemBoolean
If true, the service replaces existing if service is already initialized

Type Parameters

NewType
See Also