IMetabaseUpdate.SaveToFileNF

Syntax

SaveToFileNF(FileName: String);

Parameters

FileName. Full path and file name, to which the update is saved.

Description

The SaveToFileNF method saves an update to a file with the *.pefx extension.

Comments

The *.pefx format allows for saving a bigger number of objects to the update, comparing with the *.pef format.

Example

Executing the example requires that the repository contains an object with the MYOBJ1 identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var 
    Mb: IMetabase;
    MUpdate: IMetabaseUpdate;
    RootFolder: IMetabaseUpdateFolderNode;
    Node: IMetabaseUpdateObjectNode;
Begin
    Mb := MetabaseClass.Active;
    MUpdate := Mb.CreateUpdate;
    RootFolder := MUpdate.RootFolder;
    Node := RootFolder.Add(MetabaseUpdateNodeType.Object) As IMetabaseUpdateObjectNode;
    Node.UpdatePart := MetabaseObjectUpdatePart.DataMetadataSD;
    Node.UpdateType := MetabaseObjectUpdateType.Simple;
    Node.IncludeChildrenDependencies := TriState.OnOption;
    Node.Object := Mb.ItemById("MyOBJ1").Bind;
    MUpdate.SaveToFileNF("C:\Update.pefx");
End Sub UserProc;

After executing the example an update is created and is saved to the specified file.

See also:

IMetabaseUpdate