XhtmlConformanceSection.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / XhtmlConformanceSection.cs / 2 / XhtmlConformanceSection.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Web.Configuration { 
 
    using System.Configuration;
    using System.Security.Permissions; 

/*
         
*/ 
    [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
    public sealed class XhtmlConformanceSection : ConfigurationSection { 
        private static ConfigurationPropertyCollection _properties;

        internal const XhtmlConformanceMode DefaultMode = XhtmlConformanceMode.Transitional;
 
        private static readonly ConfigurationProperty _propMode =
            new ConfigurationProperty("mode", 
                                      typeof(XhtmlConformanceMode), 
                                      DefaultMode,
                                      ConfigurationPropertyOptions.None); 

        static XhtmlConformanceSection() {
            // Property initialization
            _properties = new ConfigurationPropertyCollection(); 
            _properties.Add(_propMode);
        } 
 
        protected override ConfigurationPropertyCollection Properties {
            get { 
                return _properties;
            }
        }
 
        [ConfigurationProperty("mode", DefaultValue=DefaultMode)]
        public XhtmlConformanceMode Mode { 
            get { 
                return (XhtmlConformanceMode)base[_propMode];
            } 
            set {
                base[_propMode] = value;
            }
        } 
    }
} 

// 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