Click or drag to resize

IAnalysisModelServiceAddItemToModel Method

[This is preliminary documentation and is subject to change.]

Namespace:  ModelExchanger.AnalysisDataModel.Contracts
Assembly:  ModelExchanger.AnalysisDataModel.Contracts (in ModelExchanger.AnalysisDataModel.Contracts.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
bool AddItemToModel(
	AnalysisModel model,
	IAnalysisObject analysisObject,
	IObjectIdentifier identifier = null
)

Parameters

model
Type: ModelExchanger.AnalysisDataModel.ModelsAnalysisModel
The AnalysisModel to which the provided IAnalysisObject needs to be added
analysisObject
Type: ModelExchanger.AnalysisDataModelIAnalysisObject
The IAnalysisObject to be added to the provided AnalysisModel
identifier (Optional)
Type: CSInfrastructure.FluentValidationIObjectIdentifier
An optional IObjectIdentifier implementation that allows identification of objects across modules. Used primarily to compose validation warning or error messages

Return Value

Type: Boolean
True if the object has been added to the model, false otherwise (in case of validation errors) when the object was not added to the model
See Also