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
- objectquery_tresulttype.cs
- TextUtf8RawTextWriter.cs
- IdentityHolder.cs
- DataGridRow.cs
- PageCodeDomTreeGenerator.cs
- TextBoxBase.cs
- ObjectCloneHelper.cs
- ObjectDataSourceView.cs
- Msec.cs
- DataGridItem.cs
- NullableConverter.cs
- SqlCachedBuffer.cs
- WSHttpBinding.cs
- Flattener.cs
- FixedPageStructure.cs
- TextElementCollectionHelper.cs
- MetadataArtifactLoaderCompositeFile.cs
- Calendar.cs
- DataGridViewLinkCell.cs
- EmissiveMaterial.cs
- MeasureItemEvent.cs
- RecommendedAsConfigurableAttribute.cs
- MD5.cs
- mediaeventshelper.cs
- VisualTreeFlattener.cs
- dbdatarecord.cs
- CommonDialog.cs
- FixedBufferAttribute.cs
- BinaryObjectInfo.cs
- ProtocolElement.cs
- QueryOutputWriter.cs
- RemotingAttributes.cs
- PropertyGridView.cs
- ExternalFile.cs
- DoubleLink.cs
- MergeFailedEvent.cs
- DBPropSet.cs
- __Filters.cs
- DistinctQueryOperator.cs
- XmlWrappingReader.cs
- RectangleF.cs
- SecureUICommand.cs
- DomainConstraint.cs
- Transform3DGroup.cs
- RuntimeArgumentHandle.cs
- SpellerInterop.cs
- SqlAliasesReferenced.cs
- StylusPointPropertyInfo.cs
- DataColumn.cs
- altserialization.cs
- DataGridViewButtonCell.cs
- ColorEditor.cs
- SqlDataReaderSmi.cs
- MediaCommands.cs
- ParseElement.cs
- MinMaxParagraphWidth.cs
- ToolboxComponentsCreatingEventArgs.cs
- ControlPropertyNameConverter.cs
- WindowsTab.cs
- ACE.cs
- TextRangeEdit.cs
- ProviderConnectionPointCollection.cs
- shaper.cs
- DataObjectFieldAttribute.cs
- ReplyChannelAcceptor.cs
- TcpDuplicateContext.cs
- LockedAssemblyCache.cs
- PropertyGeneratedEventArgs.cs
- PageStatePersister.cs
- ConnectionsZone.cs
- GlobalizationAssembly.cs
- DBSqlParserTable.cs
- BooleanConverter.cs
- ControlParameter.cs
- EFTableProvider.cs
- handlecollector.cs
- DatatypeImplementation.cs
- entityreference_tresulttype.cs
- Error.cs
- ProcessMonitor.cs
- WebColorConverter.cs
- DefaultShape.cs
- DashStyle.cs
- FileSecurity.cs
- GeneralTransform.cs
- MsmqIntegrationValidationBehavior.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- ActiveDesignSurfaceEvent.cs
- TransactionProxy.cs
- updatecommandorderer.cs
- JsonWriter.cs
- diagnosticsswitches.cs
- MulticastNotSupportedException.cs
- WSHttpTransportSecurityElement.cs
- _NtlmClient.cs
- CodeNamespaceImportCollection.cs
- CachedCompositeFamily.cs
- StringBuilder.cs
- GuidTagList.cs
- SafeProcessHandle.cs