IAssembly.References

Syntax

References: String;

Description

The References property determines the list of references to the platform assemblies, which must be connected to this assembly.

Comments

Names of the assemblies in the list are separated by the ";" character. The list may contain system assemblies of the platform (Dal, Db, and so on) and identifiers of the custom assemblies, which exist in the repository.

NOTE. The System repository system assembly is always connected by default. It is not necessary to state it in the list of references.

Example

Executing the example requires an assembly with the ASSEMBLY_1 identifier.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Asm: IAssembly;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("ASSEMBLY_1").Edit;
    Asm := MObj As IAssembly;
    Asm.References := "Dt;Etl;Io";
    If Asm.Modified Then
        MObj.Save;
    End If;
End Sub UserProc;

After executing the example the list of references to the system assemblies of the platform is changed.

See also:

IAssembly