Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / xsp / System / Web / Extensions / Configuration / ScriptingRoleServiceSection.cs / 1 / ScriptingRoleServiceSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Configuration; using System.Security.Permissions; using System.Web; using System.Web.Configuration; // [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] public sealed class ScriptingRoleServiceSection : ConfigurationSection { private static readonly ConfigurationProperty _propEnabled = new ConfigurationProperty("enabled", typeof(bool), false); private static ConfigurationPropertyCollection _properties = BuildProperties(); private static ConfigurationPropertyCollection BuildProperties() { ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); properties.Add(_propEnabled); return properties; } internal static ScriptingRoleServiceSection GetConfigurationSection() { return (ScriptingRoleServiceSection)WebConfigurationManager.GetWebApplicationSection("system.web.extensions/scripting/webServices/roleService"); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("enabled", DefaultValue = false)] public bool Enabled { get { return (bool)this[_propEnabled]; } set { this[_propEnabled] = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Configuration; using System.Security.Permissions; using System.Web; using System.Web.Configuration; // [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] public sealed class ScriptingRoleServiceSection : ConfigurationSection { private static readonly ConfigurationProperty _propEnabled = new ConfigurationProperty("enabled", typeof(bool), false); private static ConfigurationPropertyCollection _properties = BuildProperties(); private static ConfigurationPropertyCollection BuildProperties() { ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); properties.Add(_propEnabled); return properties; } internal static ScriptingRoleServiceSection GetConfigurationSection() { return (ScriptingRoleServiceSection)WebConfigurationManager.GetWebApplicationSection("system.web.extensions/scripting/webServices/roleService"); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("enabled", DefaultValue = false)] public bool Enabled { get { return (bool)this[_propEnabled]; } set { this[_propEnabled] = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RouteValueDictionary.cs
- ProviderSettings.cs
- SafeWaitHandle.cs
- AssemblyUtil.cs
- util.cs
- TextEvent.cs
- EnumValidator.cs
- DriveInfo.cs
- MultiSelector.cs
- RoutedEventArgs.cs
- ExcCanonicalXml.cs
- HitTestDrawingContextWalker.cs
- IRCollection.cs
- altserialization.cs
- TableHeaderCell.cs
- ErrorHandler.cs
- CodeDomSerializerBase.cs
- XmlEntityReference.cs
- ScriptControlDescriptor.cs
- ToolStripPanel.cs
- XmlnsCache.cs
- LoginUtil.cs
- ComboBoxHelper.cs
- JoinElimination.cs
- FileSystemInfo.cs
- _BufferOffsetSize.cs
- ConversionValidationRule.cs
- DropTarget.cs
- RemoteCryptoSignHashRequest.cs
- WebPartZoneCollection.cs
- WebUtil.cs
- BooleanExpr.cs
- ConsumerConnectionPointCollection.cs
- DocumentViewerHelper.cs
- HScrollProperties.cs
- DebugHandleTracker.cs
- ColorMatrix.cs
- ConfigXmlElement.cs
- SecurityCapabilities.cs
- ExpandCollapseProviderWrapper.cs
- ExpressionList.cs
- AssemblyContextControlItem.cs
- SystemIcmpV6Statistics.cs
- RequestBringIntoViewEventArgs.cs
- SqlMethodAttribute.cs
- DataTableReaderListener.cs
- SqlDataSourceStatusEventArgs.cs
- IncrementalHitTester.cs
- DictionaryBase.cs
- ValueUtilsSmi.cs
- XmlReaderSettings.cs
- StylusEditingBehavior.cs
- ThreadSafeList.cs
- JsonReaderDelegator.cs
- CombinedHttpChannel.cs
- LineGeometry.cs
- PropertyRecord.cs
- typedescriptorpermissionattribute.cs
- wmiutil.cs
- PersonalizationProvider.cs
- IntSecurity.cs
- VisualCollection.cs
- QueryStringParameter.cs
- ValidationRule.cs
- DefaultExpression.cs
- SymbolMethod.cs
- RadioButtonBaseAdapter.cs
- SecureConversationVersion.cs
- DataSourceControlBuilder.cs
- XamlStyleSerializer.cs
- SqlReferenceCollection.cs
- DefaultTraceListener.cs
- ImportCatalogPart.cs
- Byte.cs
- SynchronizedInputAdaptor.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- IndentedWriter.cs
- FormViewInsertEventArgs.cs
- CachedPathData.cs
- DataGridViewButtonCell.cs
- DataView.cs
- FastPropertyAccessor.cs
- DescendentsWalkerBase.cs
- ManualWorkflowSchedulerService.cs
- TextContainerChangeEventArgs.cs
- WebEvents.cs
- Walker.cs
- CodeDomLocalizationProvider.cs
- DefaultAsyncDataDispatcher.cs
- DataChangedEventManager.cs
- InputProviderSite.cs
- CodeTypeParameterCollection.cs
- PropertyValueUIItem.cs
- XmlChoiceIdentifierAttribute.cs
- SHA1Managed.cs
- RegexWriter.cs
- PenLineCapValidation.cs
- Package.cs
- ConfigurationManagerHelper.cs
- SafeViewOfFileHandle.cs