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
- WindowsStreamSecurityElement.cs
- MaskedTextBox.cs
- SafeBitVector32.cs
- ThreadAttributes.cs
- HttpRequest.cs
- CheckBox.cs
- EventWaitHandle.cs
- ColumnHeader.cs
- HandlerWithFactory.cs
- UndirectedGraph.cs
- DependencyObjectType.cs
- RegistryDataKey.cs
- WebReferencesBuildProvider.cs
- PageBuildProvider.cs
- SqlDependency.cs
- RulePatternOps.cs
- HttpRequest.cs
- mediaeventshelper.cs
- XmlUrlResolver.cs
- ParseNumbers.cs
- DefaultBindingPropertyAttribute.cs
- RadioButtonStandardAdapter.cs
- Point.cs
- BooleanExpr.cs
- UnsafeNativeMethods.cs
- XmlSchemaInfo.cs
- RegexReplacement.cs
- ChtmlTextBoxAdapter.cs
- TextRunTypographyProperties.cs
- HttpRequestContext.cs
- SchemaManager.cs
- StylusPlugInCollection.cs
- DeviceContext2.cs
- PrincipalPermission.cs
- SimpleModelProvider.cs
- TransformCryptoHandle.cs
- HttpCacheVary.cs
- WebAdminConfigurationHelper.cs
- CompilerError.cs
- DataGridViewCellCancelEventArgs.cs
- Table.cs
- ExtentKey.cs
- NativeStructs.cs
- ProviderException.cs
- FontCacheLogic.cs
- KnownTypes.cs
- ProviderMetadata.cs
- PageBreakRecord.cs
- XmlParser.cs
- Gdiplus.cs
- FloatSumAggregationOperator.cs
- ImportCatalogPart.cs
- DSGeneratorProblem.cs
- DbXmlEnabledProviderManifest.cs
- NavigationPropertyEmitter.cs
- _ChunkParse.cs
- JapaneseLunisolarCalendar.cs
- User.cs
- CompiledAction.cs
- ToolStripRendererSwitcher.cs
- XamlToRtfWriter.cs
- LayoutTableCell.cs
- UInt16.cs
- RedirectionProxy.cs
- ContractMapping.cs
- _NegoState.cs
- MeshGeometry3D.cs
- LinqExpressionNormalizer.cs
- FastEncoder.cs
- SponsorHelper.cs
- XMLUtil.cs
- LinkArea.cs
- EventTrigger.cs
- DataServiceQueryProvider.cs
- X509CertificateCollection.cs
- Events.cs
- GenericUriParser.cs
- SafeWaitHandle.cs
- BookmarkList.cs
- SoapIncludeAttribute.cs
- CheckBoxStandardAdapter.cs
- DateTimeParse.cs
- BooleanAnimationBase.cs
- InstanceDescriptor.cs
- WindowsStartMenu.cs
- SetUserPreferenceRequest.cs
- RankException.cs
- OdbcParameter.cs
- DataIdProcessor.cs
- SmtpNetworkElement.cs
- Line.cs
- DataServicePagingProviderWrapper.cs
- QueryExpr.cs
- TypeSystem.cs
- StateMachineWorkflow.cs
- BrowserTree.cs
- HttpRawResponse.cs
- TreeBuilderXamlTranslator.cs
- HotCommands.cs
- DataServiceQueryContinuation.cs