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
- CacheDependency.cs
- InvalidComObjectException.cs
- ActivityBuilder.cs
- ADMembershipUser.cs
- NativeMethods.cs
- webproxy.cs
- StateMachineWorkflowInstance.cs
- CheckableControlBaseAdapter.cs
- DateTime.cs
- GifBitmapDecoder.cs
- PathGeometry.cs
- BrushMappingModeValidation.cs
- ValuePatternIdentifiers.cs
- FontInfo.cs
- BlobPersonalizationState.cs
- SiteMap.cs
- ColumnWidthChangingEvent.cs
- CharacterBuffer.cs
- HierarchicalDataSourceControl.cs
- SelectorAutomationPeer.cs
- CodeTypeReferenceCollection.cs
- WorkflowOperationInvoker.cs
- ListViewAutomationPeer.cs
- OracleCommandBuilder.cs
- DynamicPropertyHolder.cs
- InternalBase.cs
- ScaleTransform.cs
- DataControlButton.cs
- AssemblyBuilderData.cs
- ObjectHandle.cs
- ProfileSettingsCollection.cs
- HatchBrush.cs
- SourceElementsCollection.cs
- _PooledStream.cs
- SpotLight.cs
- TraceHandler.cs
- SQLRoleProvider.cs
- ConfigurationSectionCollection.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- SapiRecoInterop.cs
- IPGlobalProperties.cs
- CodeGotoStatement.cs
- FixedSOMElement.cs
- InputMethodStateTypeInfo.cs
- ObjectCloneHelper.cs
- HttpClientCertificate.cs
- RouteUrlExpressionBuilder.cs
- SrgsDocumentParser.cs
- SmtpTransport.cs
- TableLayoutSettings.cs
- TraceSwitch.cs
- ServiceBusyException.cs
- RC2.cs
- MsmqInputMessage.cs
- HandleInitializationContext.cs
- SQlBooleanStorage.cs
- UTF32Encoding.cs
- TemplateParser.cs
- ServiceDescriptionSerializer.cs
- XmlSchemaSet.cs
- UiaCoreProviderApi.cs
- Geometry3D.cs
- Models.cs
- ImageSourceValueSerializer.cs
- ObjectDataProvider.cs
- DebugHandleTracker.cs
- CallId.cs
- InvalidCommandTreeException.cs
- ThicknessAnimation.cs
- ConfigurationFileMap.cs
- DataContractJsonSerializer.cs
- InvokeWebServiceDesigner.cs
- Inline.cs
- ControlBuilder.cs
- DescriptionAttribute.cs
- InternalEnumValidator.cs
- EpmSyndicationContentSerializer.cs
- ComMethodElement.cs
- PointValueSerializer.cs
- Queue.cs
- PropertyDescriptorGridEntry.cs
- Content.cs
- CodeValidator.cs
- NullableDoubleMinMaxAggregationOperator.cs
- CacheEntry.cs
- SecurityElement.cs
- FormViewPageEventArgs.cs
- Privilege.cs
- Win32Interop.cs
- BasicViewGenerator.cs
- TouchesCapturedWithinProperty.cs
- DataGridViewImageColumn.cs
- SqlCommandSet.cs
- SupportingTokenParameters.cs
- PaperSource.cs
- DataGridViewHeaderCell.cs
- XNameConverter.cs
- PeerServiceMessageContracts.cs
- NaturalLanguageHyphenator.cs
- SoapSchemaExporter.cs