Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ListViewItem.cs
- HeaderUtility.cs
- StreamReader.cs
- UrlMapping.cs
- UIElement3DAutomationPeer.cs
- TcpChannelHelper.cs
- ReadOnlyCollectionBase.cs
- SourceElementsCollection.cs
- CuspData.cs
- Pool.cs
- CatalogPartChrome.cs
- TextLineResult.cs
- LayoutEditorPart.cs
- DoubleLink.cs
- DbInsertCommandTree.cs
- LocalizabilityAttribute.cs
- MgmtConfigurationRecord.cs
- ToolboxComponentsCreatingEventArgs.cs
- WebSysDisplayNameAttribute.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- PropertyMappingExceptionEventArgs.cs
- ResourceDefaultValueAttribute.cs
- ScriptComponentDescriptor.cs
- ConfigurationLocationCollection.cs
- PropertyGeneratedEventArgs.cs
- InkCanvasFeedbackAdorner.cs
- TextFragmentEngine.cs
- __ConsoleStream.cs
- TabPanel.cs
- Timer.cs
- TransactionManagerProxy.cs
- DataControlFieldCell.cs
- WebPartCloseVerb.cs
- ThousandthOfEmRealPoints.cs
- PrePrepareMethodAttribute.cs
- ReachSerializationCacheItems.cs
- _ConnectionGroup.cs
- ValueType.cs
- BinaryMessageFormatter.cs
- ContentControl.cs
- DataGridCaption.cs
- VolatileEnlistmentMultiplexing.cs
- SQLUtility.cs
- Crc32.cs
- RootProfilePropertySettingsCollection.cs
- CalculatedColumn.cs
- Journaling.cs
- SqlCacheDependencySection.cs
- DoubleIndependentAnimationStorage.cs
- WindowsRegion.cs
- XmlEncodedRawTextWriter.cs
- BasicHttpSecurityMode.cs
- NullableBoolConverter.cs
- SerializationObjectManager.cs
- TemplateBuilder.cs
- WebScriptMetadataInstanceContextProvider.cs
- mda.cs
- XmlCDATASection.cs
- SimpleBitVector32.cs
- PropertyPathConverter.cs
- XmlSchemaObjectCollection.cs
- PrintingPermissionAttribute.cs
- FloaterParagraph.cs
- CompositeActivityValidator.cs
- ComboBoxItem.cs
- MouseGesture.cs
- AssemblyName.cs
- DataViewListener.cs
- CompilerState.cs
- _HTTPDateParse.cs
- LockCookie.cs
- ExportOptions.cs
- IPipelineRuntime.cs
- Visual3D.cs
- Viewport3DVisual.cs
- StrongNameKeyPair.cs
- MonitorWrapper.cs
- TextFindEngine.cs
- LeftCellWrapper.cs
- EventMappingSettingsCollection.cs
- XmlJsonReader.cs
- COM2Properties.cs
- GenericArgumentsUpdater.cs
- MediaCommands.cs
- CapabilitiesRule.cs
- ServiceMetadataExtension.cs
- MsmqProcessProtocolHandler.cs
- PermissionSetTriple.cs
- ErrorFormatterPage.cs
- __Filters.cs
- SessionStateSection.cs
- SiteMapDesignerDataSourceView.cs
- WebHeaderCollection.cs
- DuplicateWaitObjectException.cs
- TranslateTransform3D.cs
- XmlSchemaSimpleContent.cs
- WorkflowServiceAttributes.cs
- XmlText.cs
- updatecommandorderer.cs
- XPathDocumentIterator.cs