IMetabaseUpdateObjectNode.BoundType

Syntax

BoundType: MetabaseObjectUpdateBoundType;

Description

The BoundType property determines an update type.

Comments

BoundType and IMetabaseUpdateObjectNode.Constraint should be used instead of the IMetabaseUpdateObjectNode.UpdateType property.

Example

Executing the example requires the update file C:\Update.pefx. The repository should contain an object with the OBJ_FOR_PEF identifier. Add a link to the Metabase system assembly.

    Sub UserProc;
    Var
        MB: IMetabase;
        Update: IMetabaseUpdate;
        UFN: IMetabaseUpdateFolderNode;
        UON: IMetabaseUpdateObjectNode;
    Begin
        MB := MetabaseClass.Active;
        Update := Mb.CreateUpdate;
        Update.LoadFromFileNF("C:\Update.pefx");
        UFN := Update.RootFolder;
        UON := UFN.Add(MetabaseUpdateNodeType.DataObject) As IMetabaseUpdateObjectNode;
        UON.Object := MB.ItemById("OBJ_FOR_PEF");
        UON.Constraint := MetabaseObjectUpdateConstraint.CreateOnly;
        UON.BoundType := MetabaseObjectUpdateBoundType.ById;
        Update.SaveToFileNF("C:\Update.pefx");
    End Sub UserProc;

After executing the example an object with the OBJ_FOR_PEF identifier will be added to the update loaded from the C:\Update.pefx file. The following parameters will be set for this object:

Then the update is saved.

See also:

IMetabaseUpdateObjectNode