Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / Configuration / ScriptingRoleServiceSection.cs / 1305376 / ScriptingRoleServiceSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Configuration; using System.Web; using System.Web.Configuration; // 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.Web; using System.Web.Configuration; // 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
- ConstraintConverter.cs
- LinqDataSourceSelectEventArgs.cs
- EdmEntityTypeAttribute.cs
- RtType.cs
- Error.cs
- TextProperties.cs
- AnnouncementService.cs
- MatchingStyle.cs
- ApplicationServicesHostFactory.cs
- GPRECTF.cs
- Mappings.cs
- Scene3D.cs
- PriorityQueue.cs
- SeverityFilter.cs
- _DomainName.cs
- HtmlButton.cs
- ColumnReorderedEventArgs.cs
- RuleCache.cs
- QueryNode.cs
- FactoryRecord.cs
- CacheRequest.cs
- SchemaElementDecl.cs
- EntitySet.cs
- UrlMapping.cs
- MdiWindowListItemConverter.cs
- COM2PictureConverter.cs
- SelectedGridItemChangedEvent.cs
- EventDescriptor.cs
- propertytag.cs
- WorkflowRuntimeServiceElementCollection.cs
- ContextMenuStrip.cs
- WhiteSpaceTrimStringConverter.cs
- FileSystemEventArgs.cs
- SaveFileDialog.cs
- PaperSource.cs
- Int16AnimationUsingKeyFrames.cs
- ReadContentAsBinaryHelper.cs
- ListenerConnectionModeReader.cs
- Region.cs
- PresentationTraceSources.cs
- Control.cs
- NativeMethods.cs
- oledbmetadatacolumnnames.cs
- SiteMembershipCondition.cs
- NonSerializedAttribute.cs
- SoundPlayer.cs
- XmlAttributes.cs
- TemplateControl.cs
- EventMappingSettings.cs
- TextUtf8RawTextWriter.cs
- DataGridViewColumnHeaderCell.cs
- QualificationDataItem.cs
- ContentFilePart.cs
- Tool.cs
- BamlCollectionHolder.cs
- OrderByLifter.cs
- CompiledQuery.cs
- QueryResponse.cs
- OrderedDictionaryStateHelper.cs
- XmlArrayItemAttributes.cs
- TransactionFilter.cs
- ColumnMapVisitor.cs
- Wizard.cs
- GridItemProviderWrapper.cs
- XPathDocumentIterator.cs
- BaseTemplateParser.cs
- SettingsPropertyValue.cs
- AttributeTableBuilder.cs
- objectresult_tresulttype.cs
- MapPathBasedVirtualPathProvider.cs
- Assert.cs
- Pointer.cs
- CoTaskMemHandle.cs
- WebBrowserProgressChangedEventHandler.cs
- Figure.cs
- CurrentTimeZone.cs
- TransactionManager.cs
- ProtocolsSection.cs
- TaiwanLunisolarCalendar.cs
- Mappings.cs
- SimpleApplicationHost.cs
- DataServiceRequestArgs.cs
- UnicastIPAddressInformationCollection.cs
- MemoryRecordBuffer.cs
- Part.cs
- Keyboard.cs
- ToolboxItemCollection.cs
- UnsafeNativeMethods.cs
- EdmValidator.cs
- MailHeaderInfo.cs
- SqlBuffer.cs
- ObjectCloneHelper.cs
- ColorTranslator.cs
- EntityClientCacheEntry.cs
- DuplicateWaitObjectException.cs
- TimeSpan.cs
- XmlAggregates.cs
- WindowsPrincipal.cs
- FileSystemWatcher.cs
- GenerateHelper.cs