Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathNode.cs
- EventDescriptorCollection.cs
- ImportedPolicyConversionContext.cs
- CompiledRegexRunner.cs
- EditorPartChrome.cs
- DbConnectionStringCommon.cs
- WebHostedComPlusServiceHost.cs
- OpenTypeLayout.cs
- DataSourceBooleanViewSchemaConverter.cs
- FixedElement.cs
- DataSourceSerializationException.cs
- InitializationEventAttribute.cs
- PropertyValueUIItem.cs
- TemplateXamlTreeBuilder.cs
- SpellCheck.cs
- _ConnectionGroup.cs
- OperandQuery.cs
- Point3DAnimationBase.cs
- SimpleBitVector32.cs
- ThicknessAnimationBase.cs
- LockRecoveryTask.cs
- SplashScreen.cs
- SqlFunctionAttribute.cs
- FontStretch.cs
- OneOfTypeConst.cs
- AnnotationComponentChooser.cs
- MailAddress.cs
- RecognitionResult.cs
- OutputCacheSection.cs
- ResourceReferenceKeyNotFoundException.cs
- UnmanagedMemoryStreamWrapper.cs
- ThemeConfigurationDialog.cs
- SubtreeProcessor.cs
- EarlyBoundInfo.cs
- DataContext.cs
- Module.cs
- RefreshPropertiesAttribute.cs
- SQLMoney.cs
- SocketException.cs
- AppSettingsExpressionEditor.cs
- SymLanguageType.cs
- OperationInfo.cs
- OciEnlistContext.cs
- AdapterUtil.cs
- PeerNameRegistration.cs
- UserInitiatedNavigationPermission.cs
- EventData.cs
- ListViewItem.cs
- UshortList2.cs
- CodeGotoStatement.cs
- BinaryConverter.cs
- SqlTypeConverter.cs
- TabControlCancelEvent.cs
- OleDbParameterCollection.cs
- FixedTextBuilder.cs
- MonthChangedEventArgs.cs
- Block.cs
- BorderGapMaskConverter.cs
- ScrollContentPresenter.cs
- TakeQueryOptionExpression.cs
- SocketInformation.cs
- InvalidOperationException.cs
- TransactionProtocolConverter.cs
- DataServicePagingProviderWrapper.cs
- MouseEvent.cs
- AppModelKnownContentFactory.cs
- ProbeDuplexCD1AsyncResult.cs
- ContentType.cs
- ObjectDataSourceView.cs
- ArraySubsetEnumerator.cs
- MatrixConverter.cs
- TransformCollection.cs
- DnsPermission.cs
- _OSSOCK.cs
- EntitySqlQueryState.cs
- GetRecipientListRequest.cs
- EnumBuilder.cs
- SecurityTokenTypes.cs
- WinEventTracker.cs
- NetworkCredential.cs
- SubqueryRules.cs
- AccessViolationException.cs
- VersionedStream.cs
- HwndSubclass.cs
- AVElementHelper.cs
- InputBinding.cs
- TaskResultSetter.cs
- RowType.cs
- AppDomainUnloadedException.cs
- CodeCompiler.cs
- ImageDrawing.cs
- Funcletizer.cs
- DesignSurfaceServiceContainer.cs
- FontUnitConverter.cs
- Label.cs
- SharedUtils.cs
- MarginCollapsingState.cs
- DescendantOverDescendantQuery.cs
- CookieHandler.cs
- GeneralTransform2DTo3DTo2D.cs