Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / Configuration / ScriptingAuthenticationServiceSection.cs / 1 / ScriptingAuthenticationServiceSection.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 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyDescriptorGridEntry.cs
- UIElement.cs
- WebRequestModuleElementCollection.cs
- XmlElementList.cs
- DataSourceControlBuilder.cs
- TouchPoint.cs
- ActivityScheduledRecord.cs
- RuleEngine.cs
- ReferentialConstraint.cs
- IndexedEnumerable.cs
- GroupPartitionExpr.cs
- XsltLibrary.cs
- OdbcEnvironment.cs
- InertiaTranslationBehavior.cs
- PageVisual.cs
- SpellerStatusTable.cs
- SQLString.cs
- WebPartTransformer.cs
- CodeValidator.cs
- AnnotationDocumentPaginator.cs
- ConnectionInterfaceCollection.cs
- Hashtable.cs
- RuleSettingsCollection.cs
- DirectoryNotFoundException.cs
- ScriptRegistrationManager.cs
- PagesChangedEventArgs.cs
- ConfigurationManagerHelper.cs
- MenuItemStyleCollection.cs
- EncoderParameter.cs
- NamespaceList.cs
- OracleRowUpdatedEventArgs.cs
- EntityChangedParams.cs
- _OverlappedAsyncResult.cs
- OverflowException.cs
- BaseCollection.cs
- TimeZone.cs
- DiscoveryServiceExtension.cs
- QilExpression.cs
- SecurityCriticalDataForSet.cs
- X509CertificateChain.cs
- XmlSchemaGroup.cs
- RegexInterpreter.cs
- reliableinputsessionchannel.cs
- _UriSyntax.cs
- XMLUtil.cs
- List.cs
- ReadOnlyDataSourceView.cs
- AdCreatedEventArgs.cs
- TraceContextEventArgs.cs
- RenderDataDrawingContext.cs
- TableSectionStyle.cs
- SqlProcedureAttribute.cs
- OdbcConnectionFactory.cs
- ModelUtilities.cs
- CheckBoxStandardAdapter.cs
- DesignRelationCollection.cs
- ModuleElement.cs
- KeyValuePairs.cs
- EncryptedPackage.cs
- HeaderLabel.cs
- ListSortDescription.cs
- KeyNotFoundException.cs
- UseLicense.cs
- XslTransformFileEditor.cs
- CuspData.cs
- Attributes.cs
- XmlSchemaSet.cs
- TreeWalker.cs
- MSAAWinEventWrap.cs
- SimpleApplicationHost.cs
- PieceNameHelper.cs
- SpellerError.cs
- DataException.cs
- GeometryModel3D.cs
- IERequestCache.cs
- SoapIncludeAttribute.cs
- BroadcastEventHelper.cs
- MetadataAssemblyHelper.cs
- CompositionTarget.cs
- AddressHeader.cs
- QuaternionAnimation.cs
- RelatedImageListAttribute.cs
- XmlKeywords.cs
- Themes.cs
- OutKeywords.cs
- DataGrid.cs
- Propagator.cs
- StringValidatorAttribute.cs
- DomainUpDown.cs
- TemplateBindingExtension.cs
- DateTimeSerializationSection.cs
- WebPartDisplayModeEventArgs.cs
- ParamArrayAttribute.cs
- ExternalException.cs
- ProfileServiceManager.cs
- BreakSafeBase.cs
- SystemIPGlobalStatistics.cs
- DataGridViewTopLeftHeaderCell.cs
- SymmetricKeyWrap.cs
- TypeListConverter.cs