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
- HotSpotCollection.cs
- ListenerAdaptersInstallComponent.cs
- HostingPreferredMapPath.cs
- _SslStream.cs
- WindowsGraphics2.cs
- TokenBasedSet.cs
- DateTimeConverter2.cs
- ToolStripSeparator.cs
- TransactionBehavior.cs
- CheckBoxRenderer.cs
- SmtpException.cs
- DataGridViewCellStyleConverter.cs
- WindowsGraphicsCacheManager.cs
- Geometry.cs
- NoneExcludedImageIndexConverter.cs
- VariantWrapper.cs
- WinFormsComponentEditor.cs
- Stackframe.cs
- SignatureHelper.cs
- PropVariant.cs
- Transactions.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- AuthorizationRuleCollection.cs
- Vector3DAnimation.cs
- TypedLocationWrapper.cs
- AlignmentYValidation.cs
- KeyEvent.cs
- WebPartConnectionsCancelVerb.cs
- GrammarBuilder.cs
- Mappings.cs
- GridItem.cs
- PopOutPanel.cs
- DataGridViewRowHeaderCell.cs
- InputScope.cs
- EntityConnectionStringBuilderItem.cs
- FrameSecurityDescriptor.cs
- RectValueSerializer.cs
- FormatStringEditor.cs
- EncoderParameters.cs
- SqlDelegatedTransaction.cs
- MergeExecutor.cs
- SelectionService.cs
- CheckedPointers.cs
- NodeCounter.cs
- WebPartEventArgs.cs
- PropertyDescriptor.cs
- XmlDataSource.cs
- FormViewModeEventArgs.cs
- XmlQueryOutput.cs
- ComplexTypeEmitter.cs
- XPathDocument.cs
- WebConfigurationManager.cs
- XsdBuilder.cs
- DataGridViewTopLeftHeaderCell.cs
- AggregateException.cs
- SapiAttributeParser.cs
- RectAnimation.cs
- TypographyProperties.cs
- CaseInsensitiveComparer.cs
- OrderedDictionaryStateHelper.cs
- CurrentChangingEventManager.cs
- ImportCatalogPart.cs
- TextFindEngine.cs
- EventPrivateKey.cs
- View.cs
- SqlRecordBuffer.cs
- WebPartPersonalization.cs
- Annotation.cs
- ReadOnlyDataSourceView.cs
- Fx.cs
- DbCommandDefinition.cs
- ChannelAcceptor.cs
- UserControl.cs
- RowCache.cs
- FlowchartDesigner.Helpers.cs
- ColorInterpolationModeValidation.cs
- RangeBaseAutomationPeer.cs
- HMACRIPEMD160.cs
- GeometryCombineModeValidation.cs
- FileVersion.cs
- WindowClosedEventArgs.cs
- XmlSignificantWhitespace.cs
- ActivityExecutionFilter.cs
- AccessControlList.cs
- PersonalizationStateInfo.cs
- ColorAnimationBase.cs
- ConfigurationCollectionAttribute.cs
- HttpListenerElement.cs
- GlobalizationAssembly.cs
- PanelContainerDesigner.cs
- NativeMethods.cs
- DataTransferEventArgs.cs
- ServiceManagerHandle.cs
- WindowsListViewItemCheckBox.cs
- ObjectDataSourceFilteringEventArgs.cs
- DataServiceKeyAttribute.cs
- ByteStorage.cs
- ValueChangedEventManager.cs
- DataServiceResponse.cs
- ReceiveContext.cs