combit List & Label 29 - .NET Help
combit.Reporting.Dom Namespace / ProjectBase Class / Close Method
Example


In This Topic
    Close Method (ProjectBase)
    In This Topic
    Closes the project and frees all associated resources.
    Syntax
    'Declaration
     
    
    Public Overridable Sub Close() 
    public virtual void Close()
    public:
    virtual void Close(); 
    Example
    // Create List & Label instance
    ListLabel LL = new ListLabel();
    
    // Attach project
    ProjectList proj = new ProjectList(LL);
    
    // Create new project file
    proj.Open(Path.Combine(Application.StartupPath, "dynamic.lst"), LlDomFileMode.Create, LlDomAccessMode.ReadWrite);
    
    
    // ... modify ...
    
    
    // Save project
    proj.Save();
    
    // Close project, free resources
    proj.Close();
    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