Show / Hide Table of Contents

    IWindowMeta.Export Property

    .NET Standard 2.x

    Gets or sets the information of the XML export template in the model.

    Namespace: DWNet.Data

    Assembly: DWNet.Data.dll

    Syntax

    IExportMeta Export { get; set; }
    

    Return

    DWNet.Data.IExportMeta

    Returns an IExportMeta object which contains the information of the XML export template in the model.

    Examples

    The following code example demonstrates how to use the Export property.

    using DWNet.Data;
    using System;
    
    namespace Appeon.ApiDoc.IWindowMetaExamples
    {
        public class ExportExample
        {
            private readonly SchoolContext _context;
    
            public ExportExample(SchoolContext dataContext)
            {
                // Sets the data context
                _context = dataContext;
            }
    
            public void Example()
            {
                // Instantiates datastore with datawindow: d_department
                var datastore = new DataStore("d_department", _context);
    
                datastore.Retrieve();
    
                // Gets the information of the XML export template in the DataStore model.
                var windowMeta = datastore.DwMeta.DataWindow;
                var exportMeta = windowMeta.Export;
                var exportXmlMeta = exportMeta.Xml;
    
                Console.WriteLine("Templates Count: {0}", exportXmlMeta.Templates.Count);
                Console.WriteLine("UseTemplate: {0}", exportXmlMeta.UseTemplate);
    
                /*This code produces the following output:
                
                Templates Count: 1
                UseTemplate: xml_default
                */
            }
        }
    }
    

    Example Refer To

    Model Class: D_Department
    DataWindow File: d_department

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon