Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DurationConverter.cs
- TypeForwardedFromAttribute.cs
- DetailsViewModeEventArgs.cs
- DependsOnAttribute.cs
- ConfigurationSection.cs
- AsymmetricAlgorithm.cs
- XmlSchemaAny.cs
- connectionpool.cs
- TableLayoutPanelCellPosition.cs
- ExtendedPropertyDescriptor.cs
- TableSectionStyle.cs
- ServiceDurableInstanceContextProvider.cs
- StatusBarItemAutomationPeer.cs
- DesignerTransactionCloseEvent.cs
- WebHostedComPlusServiceHost.cs
- MultiTrigger.cs
- DispatcherProcessingDisabled.cs
- ListSourceHelper.cs
- UserInitiatedNavigationPermission.cs
- SimpleApplicationHost.cs
- EncoderParameters.cs
- InstallerTypeAttribute.cs
- BlurBitmapEffect.cs
- MergablePropertyAttribute.cs
- EntityKey.cs
- NewArray.cs
- XmlAttributeOverrides.cs
- RenderCapability.cs
- DataColumnPropertyDescriptor.cs
- ParserExtension.cs
- InternalTypeHelper.cs
- RegexInterpreter.cs
- Path.cs
- BindingMAnagerBase.cs
- ReceiveActivityDesignerTheme.cs
- SettingsSection.cs
- XmlRawWriter.cs
- OletxDependentTransaction.cs
- Site.cs
- FastEncoderStatics.cs
- SizeAnimationUsingKeyFrames.cs
- PartialList.cs
- PatternMatcher.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- UrlRoutingModule.cs
- FlowNode.cs
- TransactionFilter.cs
- ApplicationDirectory.cs
- PathTooLongException.cs
- HtmlInputControl.cs
- CheckStoreFileValidityRequest.cs
- HtmlShim.cs
- WorkflowViewService.cs
- CacheSection.cs
- RenderingBiasValidation.cs
- ClientScriptManagerWrapper.cs
- RecommendedAsConfigurableAttribute.cs
- TextProperties.cs
- NetPeerTcpBindingElement.cs
- ValidationResult.cs
- IsolatedStorageFilePermission.cs
- ContractListAdapter.cs
- BookmarkScopeInfo.cs
- XPathChildIterator.cs
- QilIterator.cs
- ParameterElementCollection.cs
- RenderCapability.cs
- LinqDataSource.cs
- PrintDialog.cs
- PreviewKeyDownEventArgs.cs
- TransactionScope.cs
- SchemaImporter.cs
- PathSegment.cs
- EntityStoreSchemaGenerator.cs
- BitmapVisualManager.cs
- SocketAddress.cs
- GridViewCommandEventArgs.cs
- XmlSchemaValidator.cs
- XamlPointCollectionSerializer.cs
- FieldNameLookup.cs
- ToolStripRenderEventArgs.cs
- WaitingCursor.cs
- ToolStripDropDownItem.cs
- OdbcInfoMessageEvent.cs
- WindowsContainer.cs
- SoapAttributeAttribute.cs
- FileClassifier.cs
- SafeUserTokenHandle.cs
- HighlightComponent.cs
- DefaultBinder.cs
- HttpWebRequestElement.cs
- PeerApplication.cs
- Int32EqualityComparer.cs
- ResumeStoryboard.cs
- ObjectDisposedException.cs
- Switch.cs
- FamilyTypefaceCollection.cs
- FontFamilyConverter.cs
- NativeWindow.cs
- MSHTMLHostUtil.cs