Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- HtmlListAdapter.cs
- Fonts.cs
- HttpMethodAttribute.cs
- PassportAuthentication.cs
- FrameworkElementFactoryMarkupObject.cs
- EnumValidator.cs
- AnnotationStore.cs
- XmlQueryTypeFactory.cs
- OleServicesContext.cs
- TraceUtils.cs
- StylusEditingBehavior.cs
- RuleInfoComparer.cs
- MILUtilities.cs
- XmlResolver.cs
- SystemGatewayIPAddressInformation.cs
- XmlNullResolver.cs
- XPathChildIterator.cs
- EventMappingSettingsCollection.cs
- AstTree.cs
- MatrixConverter.cs
- XmlSerializableReader.cs
- ButtonFlatAdapter.cs
- Attributes.cs
- DelegatedStream.cs
- SchemaCreator.cs
- DictionaryTraceRecord.cs
- BitmapData.cs
- HMACMD5.cs
- ClockController.cs
- GridViewUpdatedEventArgs.cs
- ResetableIterator.cs
- LambdaCompiler.Unary.cs
- XmlCDATASection.cs
- ExpressionVisitor.cs
- GridItemCollection.cs
- ClientSession.cs
- QilReplaceVisitor.cs
- remotingproxy.cs
- BezierSegment.cs
- ExceptionUtil.cs
- PixelFormat.cs
- COM2IPerPropertyBrowsingHandler.cs
- XmlWellformedWriter.cs
- StatusBarAutomationPeer.cs
- ContextInformation.cs
- Shape.cs
- ArgIterator.cs
- OleDbDataReader.cs
- SBCSCodePageEncoding.cs
- GAC.cs
- IDispatchConstantAttribute.cs
- DBDataPermissionAttribute.cs
- OutputCacheProfileCollection.cs
- TreeViewItem.cs
- XpsFilter.cs
- XPathSelfQuery.cs
- Label.cs
- BufferModesCollection.cs
- SafeArrayTypeMismatchException.cs
- TransformProviderWrapper.cs
- DataPagerFieldItem.cs
- XmlNodeReader.cs
- ParameterCollectionEditorForm.cs
- JavaScriptString.cs
- CustomAssemblyResolver.cs
- TypedElement.cs
- AnchoredBlock.cs
- AssemblyAssociatedContentFileAttribute.cs
- ParameterElementCollection.cs
- UserPreferenceChangingEventArgs.cs
- TableColumn.cs
- OutOfProcStateClientManager.cs
- MetadataHelper.cs
- GZipDecoder.cs
- NamespaceInfo.cs
- ProviderBase.cs
- SharedPerformanceCounter.cs
- AnnotationResourceChangedEventArgs.cs
- smtppermission.cs
- RegisteredScript.cs
- AncestorChangedEventArgs.cs
- Freezable.cs
- SqlStatistics.cs
- MobileControlDesigner.cs
- OTFRasterizer.cs
- ShowExpandedMultiValueConverter.cs
- WebPartDeleteVerb.cs
- EditorPart.cs
- DataGridViewCell.cs
- ServicePointManager.cs
- RuntimeIdentifierPropertyAttribute.cs
- DesignTimeParseData.cs
- RootBrowserWindowAutomationPeer.cs
- XmlReaderDelegator.cs
- NamespaceCollection.cs
- UnsafeNativeMethods.cs
- ScriptReferenceEventArgs.cs
- CopyOnWriteList.cs
- EntityDataSourceStatementEditorForm.cs
- RadioButtonAutomationPeer.cs