IMetabaseUpdateObjectNode.UpdatePart

Syntax

UpdatePart: MetabaseObjectUpdatePart;

Description

The UpdatePart property determines a method of object data updating.

Example

Executing the example requires the \Update.pefx update file in the root of the C disc. The repository should contain a table with the Table_1 identifier.

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("Table_1");
    UON.UpdatePart := MetabaseObjectUpdatePart.DataMetadataSD;
    Update.SaveToFileNF("C:\Update.pefx");
End Sub UserProc;

After executing the example, a table will be added to the update loaded from the file C:\Update.pefx. Then the update is saved. Data, metadata, and access permissions for the specified table will be updated during update execution.

See also:

IMetabaseUpdateObjectNode