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
- UTF32Encoding.cs
- Semaphore.cs
- HandledEventArgs.cs
- FieldMetadata.cs
- ExternalCalls.cs
- ImageInfo.cs
- XmlSchemaType.cs
- EventsTab.cs
- WebRequestModuleElement.cs
- ResourceDictionary.cs
- StringWriter.cs
- RichTextBoxDesigner.cs
- ClientCultureInfo.cs
- Point3DValueSerializer.cs
- BindingBase.cs
- XmlSchemaException.cs
- DocumentPageHost.cs
- SafeFileMappingHandle.cs
- counter.cs
- BindingMAnagerBase.cs
- QilCloneVisitor.cs
- TemplateParser.cs
- CancelAsyncOperationRequest.cs
- TypeDescriptionProviderAttribute.cs
- ContainerFilterService.cs
- CqlErrorHelper.cs
- CancellationTokenRegistration.cs
- _UncName.cs
- ManagedFilter.cs
- LogicalExpressionTypeConverter.cs
- FilteredDataSetHelper.cs
- XmlSchemaComplexContentExtension.cs
- DefaultAsyncDataDispatcher.cs
- DropSource.cs
- SqlDataSourceFilteringEventArgs.cs
- TagMapInfo.cs
- QueuePathEditor.cs
- MetadataFile.cs
- PrintEvent.cs
- EditingCoordinator.cs
- SingleAnimationUsingKeyFrames.cs
- ReliabilityContractAttribute.cs
- StringUtil.cs
- EventDescriptor.cs
- SerializationHelper.cs
- ToolStripDropDownItem.cs
- TreeNode.cs
- WinFormsSecurity.cs
- FunctionUpdateCommand.cs
- BooleanStorage.cs
- ExceptionHandler.cs
- Polygon.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- XmlSchemaGroup.cs
- _NestedMultipleAsyncResult.cs
- SchemaImporterExtensionElement.cs
- ContentType.cs
- SimpleRecyclingCache.cs
- ArithmeticException.cs
- VBCodeProvider.cs
- LocatorGroup.cs
- NetMsmqSecurityElement.cs
- AssemblyName.cs
- DataBindingCollection.cs
- ReflectTypeDescriptionProvider.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- HelpEvent.cs
- AccessDataSource.cs
- AuthorizationRuleCollection.cs
- PlainXmlDeserializer.cs
- ToolBarTray.cs
- WindowsAuthenticationEventArgs.cs
- documentsequencetextpointer.cs
- CompositeKey.cs
- TraceInternal.cs
- StringUtil.cs
- Icon.cs
- PerformanceCounterManager.cs
- SoapExtensionStream.cs
- RefreshEventArgs.cs
- SigningCredentials.cs
- FilePrompt.cs
- WebPartZone.cs
- StaticSiteMapProvider.cs
- WebPartZoneCollection.cs
- BrushConverter.cs
- DataSourceXmlClassAttribute.cs
- GestureRecognizer.cs
- ResourceExpression.cs
- SingleSelectRootGridEntry.cs
- ImportContext.cs
- ActiveXSite.cs
- DateTimeValueSerializerContext.cs
- UnmanagedHandle.cs
- PropertyGridEditorPart.cs
- CalendarDay.cs
- GeometryCollection.cs
- ConfigurationStrings.cs
- Debug.cs
- DragDrop.cs