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
- MenuItemBinding.cs
- PropertySourceInfo.cs
- BindingMemberInfo.cs
- GenericAuthenticationEventArgs.cs
- CallSiteBinder.cs
- Debug.cs
- CacheVirtualItemsEvent.cs
- DataGridViewRowHeaderCell.cs
- AttributeTable.cs
- PropertyFilterAttribute.cs
- PauseStoryboard.cs
- DataPagerFieldCollection.cs
- DataGridColumnCollection.cs
- ResourceSetExpression.cs
- ControlIdConverter.cs
- DesignerActionTextItem.cs
- EntityContainerAssociationSet.cs
- DataGridRelationshipRow.cs
- NetNamedPipeBinding.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- PresentationAppDomainManager.cs
- CredentialCache.cs
- RectangleGeometry.cs
- KerberosSecurityTokenProvider.cs
- AcceleratedTokenProviderState.cs
- ToolStripContainer.cs
- KeyboardEventArgs.cs
- CopyCodeAction.cs
- Fonts.cs
- PropertyToken.cs
- SqlTrackingService.cs
- SafeFileHandle.cs
- WrappingXamlSchemaContext.cs
- contentDescriptor.cs
- AssemblyGen.cs
- coordinatorfactory.cs
- HelpProvider.cs
- PostBackOptions.cs
- MatrixTransform.cs
- CodeTypeReference.cs
- XamlPointCollectionSerializer.cs
- XmlSchemaAppInfo.cs
- SystemInformation.cs
- RenamedEventArgs.cs
- RoutedEventConverter.cs
- ObjectCache.cs
- ElementUtil.cs
- EncryptedReference.cs
- OdbcConnectionFactory.cs
- AdornerHitTestResult.cs
- SchemaMapping.cs
- PropertyPushdownHelper.cs
- ResourceSet.cs
- Bezier.cs
- CompModHelpers.cs
- MultipartContentParser.cs
- DataGridParentRows.cs
- ListChunk.cs
- DataGridViewIntLinkedList.cs
- DescriptionAttribute.cs
- ObjectSet.cs
- ReflectionHelper.cs
- WebPartManagerInternals.cs
- XmlWrappingReader.cs
- ConnectionManagementElementCollection.cs
- DataGridViewColumnStateChangedEventArgs.cs
- _ShellExpression.cs
- ObjectView.cs
- diagnosticsswitches.cs
- WeakReadOnlyCollection.cs
- SqlCacheDependencySection.cs
- HtmlHistory.cs
- ReadOnlyDictionary.cs
- WebPartConnectionsDisconnectVerb.cs
- HandlerBase.cs
- RelatedPropertyManager.cs
- WebConfigurationHostFileChange.cs
- AuthenticateEventArgs.cs
- BooleanToVisibilityConverter.cs
- ISAPIWorkerRequest.cs
- XmlSchemaCollection.cs
- DbConnectionPoolGroup.cs
- TrackingDataItem.cs
- CmsInterop.cs
- FlatButtonAppearance.cs
- XmlNodeChangedEventManager.cs
- InkCanvasSelectionAdorner.cs
- ContractMapping.cs
- ToolStripPanelRenderEventArgs.cs
- FunctionMappingTranslator.cs
- BitmapImage.cs
- SqlCrossApplyToCrossJoin.cs
- SslSecurityTokenParameters.cs
- OracleMonthSpan.cs
- DataGridColumnCollection.cs
- EdmRelationshipRoleAttribute.cs
- CustomAttributeFormatException.cs
- SafeProcessHandle.cs
- WindowsTab.cs
- Zone.cs