XmlSchemaAnnotated.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaAnnotated.cs / 1 / XmlSchemaAnnotated.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
//-----------------------------------------------------------------------------
 
namespace System.Xml.Schema { 

    using System.Collections; 
    using System.Xml.Serialization;

    /// 
    ///  
    ///    [To be supplied.]
    ///  
    public class XmlSchemaAnnotated : XmlSchemaObject { 
        string id;
        XmlSchemaAnnotation annotation; 
        XmlAttribute[] moreAttributes;

        /// 
        ///  
        ///    [To be supplied.]
        ///  
        [XmlAttribute("id", DataType="ID")] 
        public string Id {
            get { return id; } 
            set { id = value; }
        }

        ///  
        /// 
        ///    [To be supplied.] 
        ///  
        [XmlElement("annotation", typeof(XmlSchemaAnnotation))]
        public XmlSchemaAnnotation Annotation { 
            get { return annotation; }
            set { annotation = value; }
        }
 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        [XmlAnyAttribute] 
        public XmlAttribute[] UnhandledAttributes {
            get { return moreAttributes; }
            set { moreAttributes = value; }
        } 

        [XmlIgnore] 
        internal override string IdAttribute { 
            get { return Id; }
            set { Id = value; } 
        }

        internal override void SetUnhandledAttributes(XmlAttribute[] moreAttributes) {
            this.moreAttributes = moreAttributes; 
        }
        internal override void AddAnnotation(XmlSchemaAnnotation annotation) { 
            this.annotation = annotation; 
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK