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
- CompositeControl.cs
- HybridObjectCache.cs
- BStrWrapper.cs
- Constraint.cs
- XmlAtomicValue.cs
- XmlQueryOutput.cs
- SecurityHelper.cs
- Activity.cs
- Int32.cs
- CurrentChangedEventManager.cs
- mda.cs
- HtmlInputCheckBox.cs
- Message.cs
- EnumUnknown.cs
- XmlDataContract.cs
- DetailsViewUpdateEventArgs.cs
- ImageSource.cs
- SiteMapDataSourceView.cs
- WebZone.cs
- DBDataPermissionAttribute.cs
- DoubleLinkList.cs
- WebPartConnectVerb.cs
- TrustManagerMoreInformation.cs
- PointLight.cs
- SafeFindHandle.cs
- FixedSOMTableCell.cs
- GridViewUpdateEventArgs.cs
- ConfigurationStrings.cs
- dbdatarecord.cs
- XPathArrayIterator.cs
- SafeNativeMethods.cs
- ContextMenuAutomationPeer.cs
- BufferedGraphicsManager.cs
- ExpressionNormalizer.cs
- AllMembershipCondition.cs
- WindowsGraphicsCacheManager.cs
- DataGridViewCell.cs
- GPStream.cs
- DateTimeOffsetStorage.cs
- TypefaceMetricsCache.cs
- XmlQueryOutput.cs
- WinFormsComponentEditor.cs
- FormViewUpdatedEventArgs.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- DataGridPreparingCellForEditEventArgs.cs
- TrailingSpaceComparer.cs
- PackageRelationshipSelector.cs
- DependencyObjectProvider.cs
- CompositeScriptReference.cs
- FixUp.cs
- Point3DCollectionValueSerializer.cs
- AuthorizationRuleCollection.cs
- Activity.cs
- DrawingAttributes.cs
- AttributeCollection.cs
- ReadOnlyDictionary.cs
- ContravarianceAdapter.cs
- ToolStrip.cs
- HTTPNotFoundHandler.cs
- HashHelper.cs
- StylusPointProperties.cs
- SqlDataSource.cs
- AutomationPropertyInfo.cs
- FontStretches.cs
- LeftCellWrapper.cs
- SizeKeyFrameCollection.cs
- userdatakeys.cs
- FastEncoder.cs
- SelectionBorderGlyph.cs
- SizeAnimationBase.cs
- SoapAttributeOverrides.cs
- ObjectQueryExecutionPlan.cs
- SafeFindHandle.cs
- activationcontext.cs
- MenuItem.cs
- WebBrowserProgressChangedEventHandler.cs
- RewritingSimplifier.cs
- WsdlContractConversionContext.cs
- _TLSstream.cs
- HtmlListAdapter.cs
- LinkDescriptor.cs
- HttpWebResponse.cs
- SizeF.cs
- StreamWithDictionary.cs
- SQLByteStorage.cs
- AlternationConverter.cs
- Group.cs
- DataGridViewCellStyle.cs
- CurrentChangedEventManager.cs
- ArrayList.cs
- XmlArrayItemAttributes.cs
- FontInfo.cs
- Blend.cs
- FormViewModeEventArgs.cs
- ExpanderAutomationPeer.cs
- SourceSwitch.cs
- GlyphRun.cs
- ShapingWorkspace.cs
- IdleTimeoutMonitor.cs
- FontResourceCache.cs