CreateMDSModel
Purpose
The CMetaAIM CreateMDSModel function creates an AIM model object.
Description
The GUID can optionally be provided. The default OwnerID is the logged in user. The metamodel's versioning support will be set from the repository's versioning support flag.
Requirements
When creating an AIM, CMetaAIM names must be unique within the repository database.
Updates to an existing model object are not permitted.
Syntax
HRESULT CreateMDSModel(
LPCTSTR strModelName,
LPCTSTR strModelDesc,
const GUID& gGID,
const OBJECTID_t lOwnerID = NULLLOID,
const OBJECTID_t SecurityProfileID = NULLLOID);
Argument |
In/Out |
Description |
Name |
In |
Name of the model. |
Desc |
In |
Description of model. |
gGUID |
In |
Global unique identifier of this model. Set to NULLGUID to have MDS generate the GUID for the model. |
OwnerID |
In |
OwnerID of this object. |
SecurityProfileID |
In |
Security Profile assigned to the object. |