combit List & Label 29 - .NET Help
combit.Reporting.Dom Namespace / LlDomFileMode Enumeration
Example Example


In This Topic
    LlDomFileMode Enumeration
    In This Topic

    When opening a project you must choose whether the file should be opened if existing, created always etc. This can be specified by using one of the enumeration values.

    Syntax
    'Declaration
     
    
    Public Enum LlDomFileMode 
       Inherits System.Enum
    public enum LlDomFileMode : System.Enum 
    public enum class LlDomFileMode : public System.Enum 
    Members
    MemberDescription
    CreateCreates a new file. If the file does exist, it will be overwritten.
    CreateNewCreates a new file. Will raise an exception if the file exists.
    OpenOpens an existing file. Will raise an exception if the file does not exist.
    OpenOrCreateOpens an existing file or creates a new one if the file cannot be opened.
    Example
    // bind the DOM object to a List & Label object 
    ProjectList proj = new ProjectList(LL); 
     
    // create a new listproject called 'dynamic.lst' 
    proj.Open(Path.Combine(Application.StartupPath, "dynamic.lst"), LlDomFileMode.Create, LlDomAccessMode.ReadWrite);
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             combit.Reporting.Dom.LlDomFileMode

    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also