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
- IconHelper.cs
- SQLInt16Storage.cs
- BlockExpression.cs
- ClassHandlersStore.cs
- _TimerThread.cs
- FixedElement.cs
- HostingPreferredMapPath.cs
- DataControlFieldHeaderCell.cs
- WsdlBuildProvider.cs
- ColumnMapCopier.cs
- WindowsFormsSynchronizationContext.cs
- RelatedEnd.cs
- PageParserFilter.cs
- CancellationState.cs
- PhysicalAddress.cs
- XmlUrlEditor.cs
- DataSourceView.cs
- FontUnitConverter.cs
- ErasingStroke.cs
- InvokerUtil.cs
- ConfigurationManagerInternalFactory.cs
- RegexGroupCollection.cs
- RecognizedAudio.cs
- PassportAuthenticationModule.cs
- RootProjectionNode.cs
- TabControlEvent.cs
- ProfilePropertyNameValidator.cs
- DataListItemCollection.cs
- _NestedSingleAsyncResult.cs
- GridViewPageEventArgs.cs
- TemplateControl.cs
- IconEditor.cs
- Helpers.cs
- ZoneMembershipCondition.cs
- Win32PrintDialog.cs
- WebHttpSecurityElement.cs
- AttachmentCollection.cs
- ScrollContentPresenter.cs
- AlternateViewCollection.cs
- Subtree.cs
- TableLayoutStyleCollection.cs
- TCPClient.cs
- TextParagraphView.cs
- HttpRequestCacheValidator.cs
- KnownTypesProvider.cs
- SharedPersonalizationStateInfo.cs
- SignedXml.cs
- StringAttributeCollection.cs
- KeyPullup.cs
- Brush.cs
- PointAnimationUsingKeyFrames.cs
- SendingRequestEventArgs.cs
- GridViewColumnCollection.cs
- PenCursorManager.cs
- AccessDataSourceView.cs
- Decorator.cs
- ParallelQuery.cs
- SqlParameterCollection.cs
- Monitor.cs
- TextViewBase.cs
- TextRange.cs
- PersistChildrenAttribute.cs
- TextTreeTextNode.cs
- FormsAuthenticationModule.cs
- PeerInvitationResponse.cs
- BinaryFormatterWriter.cs
- StylusShape.cs
- ExpressionBindings.cs
- Point4DConverter.cs
- BufferBuilder.cs
- FormViewPagerRow.cs
- Aggregates.cs
- MenuItemStyleCollectionEditor.cs
- Renderer.cs
- GenericUriParser.cs
- HashSetDebugView.cs
- Number.cs
- AssemblyCache.cs
- CharacterMetrics.cs
- EncryptedData.cs
- AncestorChangedEventArgs.cs
- Thickness.cs
- initElementDictionary.cs
- MarginsConverter.cs
- SubMenuStyleCollection.cs
- WorkflowTransactionService.cs
- ProtocolsConfigurationHandler.cs
- SqlMethodAttribute.cs
- ApplicationTrust.cs
- IndexOutOfRangeException.cs
- StyleSelector.cs
- DataControlButton.cs
- LinkedResourceCollection.cs
- HtmlDocument.cs
- Primitive.cs
- XPathNodeIterator.cs
- PointValueSerializer.cs
- PageClientProxyGenerator.cs
- SoapAttributeAttribute.cs
- DataGridViewColumnEventArgs.cs