ICustomProperty.Id

Syntax

Id: String;

Description

The Id property determines a custom property identifier.

Example

Executing the example requires an update file with the Update.pefx name.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    Update: IMetabaseUpdate;
    CP: ICustomProperties;
Begin
    // Get the current repository
    MB := MetabaseClass.Active;
    // Create an update object
    Update := Mb.CreateUpdate;
    // Load update from file
    Update.LoadFromFileNF("C:\Update.pefx");
    // Get update metadata
    CP := Update.CustomProperties;
    // Display information about update creator in the console
    Debug.WriteLine("Custom property identifier: "+CP.Item(0).Id);
    Debug.WriteLine("Custom property name: "+CP.Item(0).Name);
    Debug.WriteLine("Custom property value: "+CP.Item(0).Value);
End Sub UserProc;

After executing the example the console displays information about the update creator.

See also:

ICustomProperty