Sage.Integration.Northwind.Application.Base.RTDVField.GetSchemaElement C# (CSharp) Méthode

GetSchemaElement() public méthode

public GetSchemaElement ( XmlDocument xmlDoc ) : XmlSchemaElement
xmlDoc System.Xml.XmlDocument
Résultat System.Xml.Schema.XmlSchemaElement
        public XmlSchemaElement GetSchemaElement(XmlDocument xmlDoc)
        {
            // declarations
            XmlSchemaElement xmlSchemaElement;

            // initializations
            xmlSchemaElement = new XmlSchemaElement();

            // set defined attributes
            xmlSchemaElement.Name = _name;
            xmlSchemaElement.MinOccurs = _minOccurs;
            xmlSchemaElement.MaxOccurs = _maxOccurs;
            xmlSchemaElement.IsNillable = true;
            xmlSchemaElement.SchemaTypeName = this.GetXmlQualifiedName();

            // set unhandled attributes
            xmlSchemaElement.UnhandledAttributes = this.GetUnhandledAttributes(xmlDoc);

            return xmlSchemaElement;
        }