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
- TreeView.cs
- OrderingQueryOperator.cs
- DocumentApplicationJournalEntry.cs
- MetadataStore.cs
- ImageListStreamer.cs
- XamlReaderHelper.cs
- Qualifier.cs
- FixedPageStructure.cs
- SizeIndependentAnimationStorage.cs
- MouseGestureConverter.cs
- MonitoringDescriptionAttribute.cs
- CheckBoxRenderer.cs
- ResetableIterator.cs
- DrawToolTipEventArgs.cs
- ADRoleFactoryConfiguration.cs
- CodeTypeOfExpression.cs
- DragDeltaEventArgs.cs
- FreezableCollection.cs
- WpfGeneratedKnownProperties.cs
- UICuesEvent.cs
- SubstitutionList.cs
- Material.cs
- CorrelationManager.cs
- DecoderFallback.cs
- WmiEventSink.cs
- oledbconnectionstring.cs
- IriParsingElement.cs
- XmlIlTypeHelper.cs
- BrowserCapabilitiesCompiler.cs
- GestureRecognizer.cs
- EnterpriseServicesHelper.cs
- HelpKeywordAttribute.cs
- ThrowHelper.cs
- RegexFCD.cs
- regiisutil.cs
- FocusManager.cs
- Tuple.cs
- WhitespaceReader.cs
- AnimationLayer.cs
- UIElementHelper.cs
- RtType.cs
- DbParameterCollection.cs
- EntityCommandExecutionException.cs
- QilUnary.cs
- SqlRewriteScalarSubqueries.cs
- XhtmlTextWriter.cs
- ParseNumbers.cs
- Constraint.cs
- CloseCollectionAsyncResult.cs
- ClipboardData.cs
- SoapSchemaImporter.cs
- CustomTypeDescriptor.cs
- DriveInfo.cs
- PropertyAccessVisitor.cs
- RpcResponse.cs
- DataSvcMapFile.cs
- QueryAccessibilityHelpEvent.cs
- RegexRunnerFactory.cs
- SlipBehavior.cs
- DrawItemEvent.cs
- IntersectQueryOperator.cs
- HttpCookieCollection.cs
- StoreItemCollection.cs
- SystemColors.cs
- CharAnimationUsingKeyFrames.cs
- PropertyMetadata.cs
- ValueTypeFixupInfo.cs
- DataTableNewRowEvent.cs
- BaseResourcesBuildProvider.cs
- CodeLinePragma.cs
- NamespaceCollection.cs
- DataObjectAttribute.cs
- WebPartConnectionsConfigureVerb.cs
- DecoratedNameAttribute.cs
- FixedFindEngine.cs
- WorkflowQueueInfo.cs
- InvalidWorkflowException.cs
- IncrementalCompileAnalyzer.cs
- Token.cs
- ContextMarshalException.cs
- ReaderOutput.cs
- XComponentModel.cs
- DataGridViewCellStateChangedEventArgs.cs
- PropertyGridEditorPart.cs
- HeaderedContentControl.cs
- TextDecorationCollection.cs
- XmlAttributeProperties.cs
- RemoteDebugger.cs
- SqlProcedureAttribute.cs
- TransformProviderWrapper.cs
- MarkupCompilePass1.cs
- HwndTarget.cs
- HebrewNumber.cs
- DateRangeEvent.cs
- DbConnectionInternal.cs
- OptimizerPatterns.cs
- WebContext.cs
- _IPv4Address.cs
- BindingRestrictions.cs
- X509Certificate.cs