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
- GridViewColumnHeader.cs
- TextBox.cs
- Composition.cs
- CommonGetThemePartSize.cs
- TableParaClient.cs
- XmlSchemaIdentityConstraint.cs
- ReadingWritingEntityEventArgs.cs
- RequestCachingSection.cs
- ComponentEvent.cs
- PKCS1MaskGenerationMethod.cs
- SettingsPropertyIsReadOnlyException.cs
- WebPartConnectionsEventArgs.cs
- CfgParser.cs
- RelatedImageListAttribute.cs
- ExpressionBinding.cs
- filewebresponse.cs
- ConnectionsZone.cs
- DataGridAutoFormat.cs
- HitTestFilterBehavior.cs
- RelatedEnd.cs
- EntityDataSourceDataSelection.cs
- IntegerValidator.cs
- WsiProfilesElementCollection.cs
- DataControlFieldCollection.cs
- NotSupportedException.cs
- TextSchema.cs
- CodeSnippetExpression.cs
- DBCommandBuilder.cs
- FormViewUpdatedEventArgs.cs
- SizeConverter.cs
- processwaithandle.cs
- QueryOperationResponseOfT.cs
- ReplyAdapterChannelListener.cs
- ContainerFilterService.cs
- SqlDataSourceView.cs
- CatalogPart.cs
- ContextMenuStrip.cs
- ColorTranslator.cs
- DynamicRendererThreadManager.cs
- SchemaCollectionCompiler.cs
- NetworkInformationException.cs
- MdImport.cs
- UIElementHelper.cs
- Bits.cs
- SecurityTokenAuthenticator.cs
- ObjectContext.cs
- ListViewGroupItemCollection.cs
- OpacityConverter.cs
- Button.cs
- RbTree.cs
- DecodeHelper.cs
- ProviderIncompatibleException.cs
- CompositeCollection.cs
- ProjectedWrapper.cs
- CompilerCollection.cs
- NonClientArea.cs
- UserControlCodeDomTreeGenerator.cs
- EntitySetDataBindingList.cs
- KeyTimeConverter.cs
- SingleKeyFrameCollection.cs
- ServiceSecurityContext.cs
- TriggerBase.cs
- ObjectViewQueryResultData.cs
- BuilderInfo.cs
- ProfileModule.cs
- WindowsToolbar.cs
- precedingquery.cs
- FormatVersion.cs
- TypeSystemProvider.cs
- ResizeGrip.cs
- ExtensionSimplifierMarkupObject.cs
- OleDbWrapper.cs
- AbandonedMutexException.cs
- InputLanguageProfileNotifySink.cs
- GregorianCalendarHelper.cs
- NamespaceInfo.cs
- XmlSchemaGroup.cs
- OutputCacheProfileCollection.cs
- BufferedGraphicsContext.cs
- ModelVisual3D.cs
- ContractAdapter.cs
- cryptoapiTransform.cs
- Dispatcher.cs
- HttpConfigurationContext.cs
- Listbox.cs
- HTTPNotFoundHandler.cs
- _FixedSizeReader.cs
- SoapAttributeAttribute.cs
- ConfigurationHandlersInstallComponent.cs
- PolyBezierSegmentFigureLogic.cs
- ChannelRequirements.cs
- ToolStripMenuItem.cs
- BufferedGraphics.cs
- TextRunProperties.cs
- ResourceType.cs
- NativeStructs.cs
- MailSettingsSection.cs
- FlowDocumentPageViewerAutomationPeer.cs
- HyperLinkField.cs
- LineSegment.cs