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
- Group.cs
- Psha1DerivedKeyGenerator.cs
- ConfigXmlReader.cs
- ConditionValidator.cs
- DbModificationCommandTree.cs
- TextElement.cs
- InputLanguageEventArgs.cs
- WhitespaceRuleReader.cs
- DiscoveryClientReferences.cs
- WindowsImpersonationContext.cs
- DataGridGeneralPage.cs
- initElementDictionary.cs
- SmiXetterAccessMap.cs
- LogEntryDeserializer.cs
- TrailingSpaceComparer.cs
- DocumentNUp.cs
- FileRecordSequence.cs
- SpeakCompletedEventArgs.cs
- TokenCreationException.cs
- HtmlMeta.cs
- AppDomainManager.cs
- ExpressionWriter.cs
- CompilerErrorCollection.cs
- Byte.cs
- TypeKeyValue.cs
- ToolBarOverflowPanel.cs
- LateBoundChannelParameterCollection.cs
- IOException.cs
- Primitive.cs
- DbProviderManifest.cs
- NamedElement.cs
- DispatcherObject.cs
- TableHeaderCell.cs
- DataTableMapping.cs
- RestClientProxyHandler.cs
- Privilege.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- UndoManager.cs
- TrailingSpaceComparer.cs
- ToolStripLabel.cs
- TableRowCollection.cs
- IsolationInterop.cs
- DataRelationPropertyDescriptor.cs
- ClientSettingsProvider.cs
- RoutedEventConverter.cs
- ReaderContextStackData.cs
- PerformanceCountersElement.cs
- UIntPtr.cs
- StylesEditorDialog.cs
- NegotiateStream.cs
- CompositionTarget.cs
- ImageAttributes.cs
- RegisteredArrayDeclaration.cs
- VersionValidator.cs
- XPathException.cs
- FontStyles.cs
- MiniLockedBorderGlyph.cs
- MulticastNotSupportedException.cs
- TextEditorTables.cs
- GenericTextProperties.cs
- AxisAngleRotation3D.cs
- DirectoryInfo.cs
- MultiView.cs
- IDispatchConstantAttribute.cs
- PixelShader.cs
- CodeEntryPointMethod.cs
- EraserBehavior.cs
- SingleObjectCollection.cs
- EnumBuilder.cs
- UrlAuthFailedErrorFormatter.cs
- FragmentQueryProcessor.cs
- NativeRecognizer.cs
- FontFamilyConverter.cs
- DataColumnChangeEvent.cs
- Grant.cs
- DataGridBoolColumn.cs
- UnsafeNativeMethods.cs
- _HelperAsyncResults.cs
- PrefixHandle.cs
- DashStyle.cs
- EventRecordWrittenEventArgs.cs
- CodeMemberEvent.cs
- TextureBrush.cs
- DrawingVisual.cs
- HttpHandlersSection.cs
- RadioButtonAutomationPeer.cs
- CollectionEditor.cs
- TemplateKeyConverter.cs
- DataGridTable.cs
- GeneralTransformCollection.cs
- TreeNodeCollection.cs
- DoubleCollectionConverter.cs
- AutomationProperties.cs
- DPTypeDescriptorContext.cs
- MissingSatelliteAssemblyException.cs
- TemplateBaseAction.cs
- relpropertyhelper.cs
- ArgumentOutOfRangeException.cs
- WorkflowEnvironment.cs
- HtmlHistory.cs