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
- ExecutionContext.cs
- SubtreeProcessor.cs
- IssuedTokenParametersElement.cs
- Animatable.cs
- XmlEntityReference.cs
- StorageComplexTypeMapping.cs
- SimpleBitVector32.cs
- XmlSerializer.cs
- QilSortKey.cs
- DataBindingHandlerAttribute.cs
- Size.cs
- Conditional.cs
- DataGridCommandEventArgs.cs
- SupportsEventValidationAttribute.cs
- ContentDisposition.cs
- StrokeDescriptor.cs
- SchemaTableColumn.cs
- DeploymentSection.cs
- IItemProperties.cs
- TypeValidationEventArgs.cs
- UniqueSet.cs
- TableCellAutomationPeer.cs
- TextServicesCompartmentContext.cs
- TemplateControl.cs
- PointLight.cs
- TextSimpleMarkerProperties.cs
- KeyPressEvent.cs
- DeflateEmulationStream.cs
- NamespaceDecl.cs
- ApplicationTrust.cs
- ReadOnlyNameValueCollection.cs
- ClientSettingsSection.cs
- FontCacheUtil.cs
- PhysicalAddress.cs
- DataError.cs
- MultiBinding.cs
- DrawingAttributesDefaultValueFactory.cs
- MultilineStringConverter.cs
- SwitchAttribute.cs
- URL.cs
- LookupNode.cs
- ReadOnlyPropertyMetadata.cs
- BaseParagraph.cs
- GCHandleCookieTable.cs
- PointAnimationBase.cs
- ConnectionStringsSection.cs
- RTLAwareMessageBox.cs
- GeneralTransformCollection.cs
- UnaryNode.cs
- WindowsImpersonationContext.cs
- NativeRightsManagementAPIsStructures.cs
- EmptyReadOnlyDictionaryInternal.cs
- PagePropertiesChangingEventArgs.cs
- WebPartTransformer.cs
- ScriptingScriptResourceHandlerSection.cs
- TextDecorationCollectionConverter.cs
- TriState.cs
- Maps.cs
- WindowsStartMenu.cs
- UpdateManifestForBrowserApplication.cs
- SmtpFailedRecipientException.cs
- SqlMethods.cs
- RadialGradientBrush.cs
- documentsequencetextview.cs
- SmiEventStream.cs
- Propagator.Evaluator.cs
- AppDomainResourcePerfCounters.cs
- Assert.cs
- ThreadStateException.cs
- DataGridTableStyleMappingNameEditor.cs
- BevelBitmapEffect.cs
- XmlNodeWriter.cs
- EnumerableCollectionView.cs
- TokenizerHelper.cs
- DefinitionBase.cs
- GacUtil.cs
- ToolBarButton.cs
- HoistedLocals.cs
- WmlCalendarAdapter.cs
- OracleCommandSet.cs
- EndpointDispatcher.cs
- RouteValueExpressionBuilder.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- FreezableOperations.cs
- DefaultTextStoreTextComposition.cs
- SqlClientWrapperSmiStreamChars.cs
- ChtmlTextWriter.cs
- IOException.cs
- HtmlElementEventArgs.cs
- IndentTextWriter.cs
- BindingsCollection.cs
- ZipIOModeEnforcingStream.cs
- ScriptResourceDefinition.cs
- IteratorFilter.cs
- HybridDictionary.cs
- TextBreakpoint.cs
- DecryptRequest.cs
- SafeWaitHandle.cs
- ProcessModelSection.cs
- FileVersion.cs