Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- XPathNavigatorKeyComparer.cs
- ParenExpr.cs
- GlobalizationSection.cs
- MultiPageTextView.cs
- ChtmlLinkAdapter.cs
- CodeSnippetStatement.cs
- PropertyToken.cs
- BinaryUtilClasses.cs
- RunWorkerCompletedEventArgs.cs
- ToolStripSettings.cs
- XmlSchemaSimpleContentRestriction.cs
- ChannelSinkStacks.cs
- OverlappedAsyncResult.cs
- DataGridViewSelectedCellCollection.cs
- _SingleItemRequestCache.cs
- MissingFieldException.cs
- StaticFileHandler.cs
- RIPEMD160Managed.cs
- ListBoxChrome.cs
- IHttpResponseInternal.cs
- ZoneButton.cs
- QueryableFilterUserControl.cs
- Number.cs
- ClientTarget.cs
- OpenTypeLayoutCache.cs
- FontSource.cs
- ComponentResourceManager.cs
- FtpRequestCacheValidator.cs
- XdrBuilder.cs
- BinaryReader.cs
- CodeDomSerializationProvider.cs
- ValidatorCompatibilityHelper.cs
- DeviceSpecificDesigner.cs
- DependencyPropertyChangedEventArgs.cs
- SimpleType.cs
- BaseProcessor.cs
- WebPartZoneCollection.cs
- ChangePassword.cs
- LazyTextWriterCreator.cs
- ArrayElementGridEntry.cs
- SpellerInterop.cs
- embossbitmapeffect.cs
- EventPropertyMap.cs
- Int16AnimationUsingKeyFrames.cs
- DataColumnChangeEvent.cs
- ComponentDispatcherThread.cs
- SqlUserDefinedAggregateAttribute.cs
- ViewStateModeByIdAttribute.cs
- TextModifierScope.cs
- MdiWindowListItemConverter.cs
- PieceNameHelper.cs
- XmlValidatingReader.cs
- FileLevelControlBuilderAttribute.cs
- ParseNumbers.cs
- ExpandCollapseIsCheckedConverter.cs
- InstanceDataCollection.cs
- SendingRequestEventArgs.cs
- StringConverter.cs
- ForAllOperator.cs
- DES.cs
- WmpBitmapDecoder.cs
- ContentElementAutomationPeer.cs
- StructuredTypeEmitter.cs
- ImageMapEventArgs.cs
- MultiSelector.cs
- XmlIlTypeHelper.cs
- ConfigurationSectionGroupCollection.cs
- EmissiveMaterial.cs
- DirectionalAction.cs
- VScrollBar.cs
- BufferedWebEventProvider.cs
- SafeLibraryHandle.cs
- PropertyPushdownHelper.cs
- OdbcDataAdapter.cs
- NumericPagerField.cs
- EventSourceCreationData.cs
- ToolStripItemClickedEventArgs.cs
- TreeIterator.cs
- LoginUtil.cs
- ScrollBar.cs
- TransformerInfoCollection.cs
- OutKeywords.cs
- ImmutablePropertyDescriptorGridEntry.cs
- TemplateControlParser.cs
- StyleConverter.cs
- Emitter.cs
- GradientSpreadMethodValidation.cs
- FaultHandlingFilter.cs
- NullRuntimeConfig.cs
- ILGenerator.cs
- PropertyChangeTracker.cs
- DataGridViewHitTestInfo.cs
- DateTimeHelper.cs
- XmlDataSourceView.cs
- ConfigXmlDocument.cs
- TeredoHelper.cs
- DateTimeStorage.cs
- ImpersonateTokenRef.cs
- QilTargetType.cs
- BinaryMethodMessage.cs