combit List & Label 27 - .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 8.1, Windows 10 (Version 20H2 - 21H2), Windows 11 (21H2), Windows Server 2012 - 2022

    See Also