ObjectFactoryTSetObjectTypeTo Method (Type, Boolean, Boolean) |
Sets the object type created by the factory to the given type.
Namespace: CMS.CoreAssembly: CMS.Core (in CMS.Core.dll) Version: 10.0.0
Syntaxpublic static void SetObjectTypeTo(
Type newType,
bool canBeReplaced = false,
bool replaceExisting = true
)
Parameters
- newType
- Type: SystemType
Type to be crated by the factory. - canBeReplaced (Optional)
- Type: SystemBoolean
If true, the given object type can be replaced by other object type - replaceExisting (Optional)
- Type: SystemBoolean
If true, the service replaces existing if service is already initialized
See Also