ObjectFactory T  SetDefaultObjectTypeTo NewType  Method Kentico 8.1 API Reference
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.0.0.0 (8.1.5347.20411)

Parameters

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