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
- PreviewKeyDownEventArgs.cs
- TrackingStringDictionary.cs
- Highlights.cs
- CngKeyCreationParameters.cs
- DataGridTextBoxColumn.cs
- MultiView.cs
- ImportedPolicyConversionContext.cs
- ErrorHandler.cs
- AutoResizedEvent.cs
- StoreContentChangedEventArgs.cs
- ImpersonateTokenRef.cs
- TableRowCollection.cs
- XmlHelper.cs
- InputBuffer.cs
- OpCellTreeNode.cs
- BitmapEffect.cs
- StylusPointPropertyId.cs
- QilCloneVisitor.cs
- BrowserCapabilitiesCodeGenerator.cs
- FormsAuthenticationConfiguration.cs
- SQLDecimalStorage.cs
- ObjectDataSource.cs
- HtmlHead.cs
- EndpointAddress10.cs
- SiteMapNodeCollection.cs
- SizeAnimation.cs
- DefaultObjectMappingItemCollection.cs
- HttpClientCertificate.cs
- RowToParametersTransformer.cs
- XmlElementCollection.cs
- TransformPattern.cs
- DataGridTableCollection.cs
- AppliedDeviceFiltersEditor.cs
- UnsafeNativeMethodsTablet.cs
- COM2IDispatchConverter.cs
- BroadcastEventHelper.cs
- Rect3D.cs
- SBCSCodePageEncoding.cs
- RemoteCryptoSignHashRequest.cs
- DescendentsWalkerBase.cs
- ExtractedStateEntry.cs
- OracleColumn.cs
- UriPrefixTable.cs
- ValueSerializerAttribute.cs
- NamespaceMapping.cs
- TemplateControlBuildProvider.cs
- RadioButtonFlatAdapter.cs
- Emitter.cs
- XamlInt32CollectionSerializer.cs
- URL.cs
- StatusBarDesigner.cs
- ExpressionPrefixAttribute.cs
- CollectionExtensions.cs
- KeyPullup.cs
- ObjectQuery.cs
- ConfigsHelper.cs
- ParserStreamGeometryContext.cs
- SerializationHelper.cs
- WindowsStartMenu.cs
- DBCSCodePageEncoding.cs
- InputEventArgs.cs
- CodeNamespaceImport.cs
- WindowsSlider.cs
- SimpleTextLine.cs
- DBBindings.cs
- EntityProviderFactory.cs
- HuffCodec.cs
- MediaPlayer.cs
- VideoDrawing.cs
- HtmlButton.cs
- CultureInfo.cs
- MasterPageParser.cs
- ToolStripLabel.cs
- BitmapEffectCollection.cs
- Semaphore.cs
- ReachBasicContext.cs
- XmlElementAttributes.cs
- _DynamicWinsockMethods.cs
- Evaluator.cs
- SelectionList.cs
- ILGenerator.cs
- SQLInt16Storage.cs
- ToolboxItemCollection.cs
- Context.cs
- MessageSmuggler.cs
- PropertyTabChangedEvent.cs
- ZipFileInfoCollection.cs
- XmlObjectSerializerReadContextComplex.cs
- AddInToken.cs
- ToolStripRenderEventArgs.cs
- ZipPackage.cs
- OneWayBindingElement.cs
- PolicyLevel.cs
- DecoderExceptionFallback.cs
- oledbconnectionstring.cs
- JavaScriptObjectDeserializer.cs
- OwnerDrawPropertyBag.cs
- PrivilegeNotHeldException.cs
- XmlValidatingReaderImpl.cs
- ActivityDesigner.cs