Skip to main content

IModelInitializationProvider.InitializeFields method

Namespace: NextDesign.Core.EditingCapabilities

Description

Initialize the model.

Please implement it carefully so as not to create a performance bottleneck.
In the implementation of this method, if a model is added to the field, it corresponds to the added model
IModelInitializationProvider.InitializeFields is executed at that point, if there is a provider registration.

Care should be taken in provider implementations to avoid recursive calls.
For example, if you implement a model with a composite structure to create child elements within the provider
Calling IModelInitializationProvider.InitializeFields loops infinitely.

If this method throws an exception, the entire process is rolled back as if the new model creation itself had failed.

argument

NameTypeDescription
initializeParamsModelInitializationParamsParameters that provide initialization targets for instances of the model

Return value

  • void