Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / Configuration / ScriptingAuthenticationServiceSection.cs / 1305376 / ScriptingAuthenticationServiceSection.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 ScriptingAuthenticationServiceSection : ConfigurationSection { private static readonly ConfigurationProperty _propEnabled = new ConfigurationProperty("enabled", typeof(bool), false); private static readonly ConfigurationProperty _propRequireSSL = new ConfigurationProperty("requireSSL", typeof(bool), false); private static ConfigurationPropertyCollection _properties = BuildProperties(); private static ConfigurationPropertyCollection BuildProperties() { ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); properties.Add(_propEnabled); properties.Add(_propRequireSSL); return properties; } internal static ScriptingAuthenticationServiceSection GetConfigurationSection() { return (ScriptingAuthenticationServiceSection)WebConfigurationManager.GetWebApplicationSection("system.web.extensions/scripting/webServices/authenticationService"); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("enabled", DefaultValue = false)] public bool Enabled { get { return (bool)this[_propEnabled]; } set { this[_propEnabled] = value; } } [ConfigurationProperty("requireSSL", DefaultValue = false)] public bool RequireSSL { get { return (bool) this[_propRequireSSL]; } set { this[_propRequireSSL] = 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
- RC2CryptoServiceProvider.cs
- PixelFormatConverter.cs
- BlockUIContainer.cs
- HtmlHistory.cs
- WorkflowPersistenceContext.cs
- GC.cs
- AuthenticationService.cs
- ArithmeticLiteral.cs
- ElapsedEventArgs.cs
- DbgUtil.cs
- ProfileSettingsCollection.cs
- SafeNativeMethods.cs
- GenericTypeParameterBuilder.cs
- CacheChildrenQuery.cs
- RenamedEventArgs.cs
- TraceUtility.cs
- PropertyTabChangedEvent.cs
- DomainConstraint.cs
- DictionaryEntry.cs
- Quaternion.cs
- DbConnectionPoolGroup.cs
- LinkedResourceCollection.cs
- BaseCodeDomTreeGenerator.cs
- AlignmentXValidation.cs
- ConfigurationPermission.cs
- TextEffect.cs
- DataGridViewCellCollection.cs
- _StreamFramer.cs
- NameSpaceEvent.cs
- DataGridRelationshipRow.cs
- EpmHelper.cs
- CanExecuteRoutedEventArgs.cs
- WrappedIUnknown.cs
- HostExecutionContextManager.cs
- ItemsPresenter.cs
- TextBoxBaseDesigner.cs
- MulticastNotSupportedException.cs
- PreservationFileReader.cs
- UnionCqlBlock.cs
- AncillaryOps.cs
- SqlClientMetaDataCollectionNames.cs
- PriorityItem.cs
- XmlRawWriter.cs
- TemplateControlParser.cs
- XmlNodeReader.cs
- UpdateCompiler.cs
- DataGridViewHitTestInfo.cs
- dataprotectionpermissionattribute.cs
- TextSelectionProcessor.cs
- Win32Native.cs
- Update.cs
- SecurityValidationBehavior.cs
- SelectionEditingBehavior.cs
- SpanIndex.cs
- FocusManager.cs
- AbstractDataSvcMapFileLoader.cs
- FrameworkReadOnlyPropertyMetadata.cs
- BaseDataBoundControl.cs
- DispatcherFrame.cs
- XmlSerializer.cs
- ReferenceEqualityComparer.cs
- ConnectionManagementSection.cs
- SID.cs
- itemelement.cs
- TemplateBaseAction.cs
- HttpEncoder.cs
- IntegerValidator.cs
- WebPartHelpVerb.cs
- SafeRightsManagementQueryHandle.cs
- DataRowExtensions.cs
- NotifyInputEventArgs.cs
- IPipelineRuntime.cs
- TextPattern.cs
- WriteableBitmap.cs
- Component.cs
- Utils.cs
- IBuiltInEvidence.cs
- DeferredElementTreeState.cs
- StreamInfo.cs
- Encoder.cs
- AssociationSet.cs
- InputLanguageEventArgs.cs
- VisualStyleTypesAndProperties.cs
- SimpleTypesSurrogate.cs
- PresentationSource.cs
- SetMemberBinder.cs
- BaseResourcesBuildProvider.cs
- OneOfConst.cs
- cookieexception.cs
- ImageMapEventArgs.cs
- storepermissionattribute.cs
- Encoder.cs
- ExpressionDumper.cs
- CultureInfoConverter.cs
- SchemaReference.cs
- ProfilePropertySettingsCollection.cs
- ModelItemImpl.cs
- RuleSetReference.cs
- PeerServiceMessageContracts.cs
- SiteMembershipCondition.cs