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
- SequentialUshortCollection.cs
- PassportAuthenticationEventArgs.cs
- ServiceHostingEnvironment.cs
- xdrvalidator.cs
- ConfigXmlText.cs
- RsaSecurityTokenAuthenticator.cs
- TimeManager.cs
- TargetControlTypeCache.cs
- DriveNotFoundException.cs
- PageVisual.cs
- DesignBindingValueUIHandler.cs
- TextBoxAutoCompleteSourceConverter.cs
- Table.cs
- GeneralTransformGroup.cs
- XpsFontSubsetter.cs
- KeyMatchBuilder.cs
- HtmlShimManager.cs
- DataGridViewToolTip.cs
- Permission.cs
- ValidationSummary.cs
- TransformDescriptor.cs
- FixedSOMLineCollection.cs
- Int32RectConverter.cs
- VBIdentifierDesigner.xaml.cs
- SettingsProperty.cs
- WebPart.cs
- HMACRIPEMD160.cs
- HandleCollector.cs
- ListControl.cs
- SafeNativeMethodsMilCoreApi.cs
- TdsEnums.cs
- XmlSecureResolver.cs
- Header.cs
- WindowsGraphics2.cs
- BaseTemplateParser.cs
- mansign.cs
- MemberHolder.cs
- DataColumnPropertyDescriptor.cs
- DataGridViewCheckBoxColumn.cs
- SpotLight.cs
- AssemblyAttributesGoHere.cs
- ApplicationDirectory.cs
- RuntimeResourceSet.cs
- TypeContext.cs
- TableCell.cs
- EventTrigger.cs
- ServiceInfo.cs
- WorkflowFileItem.cs
- XXXInfos.cs
- BuildProvider.cs
- MatrixIndependentAnimationStorage.cs
- streamingZipPartStream.cs
- UnsafeNativeMethodsTablet.cs
- DataRowComparer.cs
- GridErrorDlg.cs
- ResolvePPIDRequest.cs
- AxHost.cs
- TraceContextRecord.cs
- ProviderSettingsCollection.cs
- CorePropertiesFilter.cs
- EdmComplexTypeAttribute.cs
- ImageBrush.cs
- MLangCodePageEncoding.cs
- EnvelopedSignatureTransform.cs
- StrokeNodeOperations.cs
- XmlSchemaSequence.cs
- MultiBindingExpression.cs
- XMLUtil.cs
- EndEvent.cs
- XpsImageSerializationService.cs
- AppDomainGrammarProxy.cs
- TimelineGroup.cs
- WebScriptEnablingElement.cs
- ParameterBuilder.cs
- ToolStripGrip.cs
- StrokeDescriptor.cs
- LabelEditEvent.cs
- safelinkcollection.cs
- Enum.cs
- FontWeight.cs
- ProfileServiceManager.cs
- Padding.cs
- DocumentViewerConstants.cs
- XmlSchemaNotation.cs
- EditBehavior.cs
- StreamHelper.cs
- RouteParameter.cs
- DataGridViewCellMouseEventArgs.cs
- SimpleApplicationHost.cs
- NamespaceQuery.cs
- HttpNamespaceReservationInstallComponent.cs
- SafeLibraryHandle.cs
- ProfilePropertyMetadata.cs
- RuntimeHandles.cs
- Int16Storage.cs
- PageParser.cs
- TableLayoutRowStyleCollection.cs
- GeometryModel3D.cs
- SecurityKeyEntropyMode.cs
- XamlBuildProvider.cs