Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / Configuration / ScriptingRoleServiceSection.cs / 1305376 / ScriptingRoleServiceSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Configuration; using System.Web; using System.Web.Configuration; // 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.Web; using System.Web.Configuration; // 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
- ReferentialConstraint.cs
- ValidatorCompatibilityHelper.cs
- BaseTemplateBuildProvider.cs
- EdmError.cs
- LineMetrics.cs
- SecurityTokenSpecification.cs
- ImpersonationContext.cs
- Behavior.cs
- ValidationPropertyAttribute.cs
- MsmqHostedTransportConfiguration.cs
- BinaryObjectInfo.cs
- ListViewTableCell.cs
- SpanIndex.cs
- FormViewActionList.cs
- SecurityUtils.cs
- Hashtable.cs
- ActivityValidator.cs
- securitymgrsite.cs
- XamlToRtfWriter.cs
- BindingSource.cs
- QuaternionRotation3D.cs
- SemaphoreSlim.cs
- CompiledIdentityConstraint.cs
- PreDigestedSignedInfo.cs
- PriorityBinding.cs
- TextDecoration.cs
- FixedPageAutomationPeer.cs
- autovalidator.cs
- StatusBarDesigner.cs
- FixedSOMLineRanges.cs
- PopupRootAutomationPeer.cs
- SmtpDigestAuthenticationModule.cs
- EntityDataSourceContextCreatingEventArgs.cs
- XmlArrayItemAttributes.cs
- StringPropertyBuilder.cs
- SmtpMail.cs
- ZoomPercentageConverter.cs
- FontFamily.cs
- Privilege.cs
- XslTransform.cs
- DeviceFilterEditorDialog.cs
- HtmlInputText.cs
- SoapException.cs
- AsyncResult.cs
- MemberHolder.cs
- HostSecurityManager.cs
- WindowsRebar.cs
- ApplicationProxyInternal.cs
- Context.cs
- IPHostEntry.cs
- SecurityKeyEntropyMode.cs
- SerializationInfoEnumerator.cs
- Exceptions.cs
- InvalidProgramException.cs
- FamilyTypefaceCollection.cs
- SerializationEventsCache.cs
- COM2AboutBoxPropertyDescriptor.cs
- QilReference.cs
- ComboBoxDesigner.cs
- AttachInfo.cs
- ModuleElement.cs
- CodeExporter.cs
- DirtyTextRange.cs
- AnonymousIdentificationSection.cs
- WindowsListViewGroupHelper.cs
- ComponentDispatcherThread.cs
- Error.cs
- SafeFileMappingHandle.cs
- ToolboxItemAttribute.cs
- BypassElement.cs
- XmlConvert.cs
- ISFTagAndGuidCache.cs
- ItemTypeToolStripMenuItem.cs
- DPCustomTypeDescriptor.cs
- NamedPipeChannelFactory.cs
- __Filters.cs
- SafeThreadHandle.cs
- EventArgs.cs
- WindowsIdentity.cs
- FilterEventArgs.cs
- SqlDataSourceSelectingEventArgs.cs
- TrustManager.cs
- SelectionItemPattern.cs
- ToolStripComboBox.cs
- ZipPackagePart.cs
- URLIdentityPermission.cs
- TypeConverterHelper.cs
- SchemaObjectWriter.cs
- SQLDecimalStorage.cs
- BuildProviderCollection.cs
- SocketSettings.cs
- PlanCompilerUtil.cs
- PageBuildProvider.cs
- ParameterCollection.cs
- ImportCatalogPart.cs
- ComplexTypeEmitter.cs
- WebPartZoneDesigner.cs
- SoapAttributes.cs
- FormViewInsertEventArgs.cs
- SmtpReplyReader.cs