Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- HostAdapter.cs
- ArraySegment.cs
- MemoryFailPoint.cs
- OrderedHashRepartitionStream.cs
- EntityCommand.cs
- SocketCache.cs
- ECDiffieHellmanPublicKey.cs
- DataMisalignedException.cs
- Serializer.cs
- AnnotationResourceChangedEventArgs.cs
- Nullable.cs
- XmlSchemaAnnotation.cs
- Int64AnimationBase.cs
- ReadOnlyCollectionBuilder.cs
- PingReply.cs
- DataContext.cs
- TextTreeDeleteContentUndoUnit.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- WsatProxy.cs
- SplineKeyFrames.cs
- WindowsMenu.cs
- CheckBoxPopupAdapter.cs
- PartialCachingAttribute.cs
- StateFinalizationActivity.cs
- GeneralTransform2DTo3D.cs
- Trace.cs
- SoapSchemaExporter.cs
- ErrorHandler.cs
- XdrBuilder.cs
- XmlSchemaDocumentation.cs
- RuntimeConfigLKG.cs
- PackageDocument.cs
- DataGridColumnCollectionEditor.cs
- ButtonPopupAdapter.cs
- ByteAnimationBase.cs
- Pair.cs
- SecurityTokenException.cs
- WindowHelperService.cs
- XsltCompileContext.cs
- WebPartDisplayMode.cs
- SmtpDigestAuthenticationModule.cs
- ToolStripScrollButton.cs
- PrintDocument.cs
- SafeReadContext.cs
- UserMapPath.cs
- ServiceDescriptions.cs
- XmlSchemaImporter.cs
- AtomContentProperty.cs
- WMICapabilities.cs
- TemplateBindingExpression.cs
- Thread.cs
- FileDialogCustomPlaces.cs
- PropertyChangedEventArgs.cs
- ControlValuePropertyAttribute.cs
- RegexRunnerFactory.cs
- OrderByQueryOptionExpression.cs
- Authorization.cs
- ScriptingRoleServiceSection.cs
- PenContexts.cs
- TransformGroup.cs
- WorkflowInstanceAbortedRecord.cs
- RequestNavigateEventArgs.cs
- SerialReceived.cs
- DesignTimeType.cs
- LazyTextWriterCreator.cs
- Switch.cs
- DependencyObjectType.cs
- EnumBuilder.cs
- FtpWebRequest.cs
- SystemResourceKey.cs
- MissingManifestResourceException.cs
- PeerName.cs
- KeyManager.cs
- LayoutInformation.cs
- DeferredRunTextReference.cs
- WindowCollection.cs
- WindowHideOrCloseTracker.cs
- querybuilder.cs
- RelatedPropertyManager.cs
- ExpressionBuilderCollection.cs
- Region.cs
- NameObjectCollectionBase.cs
- CodeMemberEvent.cs
- SRGSCompiler.cs
- Application.cs
- ReaderWriterLockSlim.cs
- FrameworkElement.cs
- InlineUIContainer.cs
- Matrix3DStack.cs
- ScrollChrome.cs
- TagPrefixAttribute.cs
- Type.cs
- WindowsButton.cs
- SqlDataSourceQueryConverter.cs
- SchemaType.cs
- RegisteredExpandoAttribute.cs
- TokenCreationParameter.cs
- RenamedEventArgs.cs
- PolyQuadraticBezierSegment.cs
- ImageDrawing.cs