IForeNETSystemAssemblyName.GetDisplayName

Syntax

GetDisplayName(DisplayFlags: SystemAssemblyNameDisplayFlags): String;

Parameters

DisplayFlags is a value that determines the additional characteristics that will be extracted during methods' operation. The combination of elements of the SystemAssemblyNameDisplayFlags enumeration type is specified as the value. The values in the list are separated by the key word Or.

Description

The GetDisplayName method returns the name of system assembly with the specified assembly characteristics.

Example

Sub UserProc;
Var
    SysAssmEnum: IForeNETSystemAssemblyEnum;
    SysAssm: IForeNETSystemAssemblyName;
Begin
    SysAssmEnum := ForeNETAssemblyClass.CreateSystemAssemblyEnum;
    While SysAssmEnum.GetNext <> Null Do
        SysAssm := SysAssmEnum.GetNext;
        Debug.WriteLine(SysAssm.GetDisplayName(SystemAssemblyNameDisplayFlags.VERSION
            Or SystemAssemblyNameDisplayFlags.PUBLIC_KEY_TOKEN));
    End While;
End Sub UserProc;

After executing this example the list of system assemblies registered in GAC, is displayed in the development environment console.Except the name, each assembly has the version and public key token displayed.

See also:

IForeNETSystemAssemblyName