Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / FormsAuthenticationCredentials.cs / 2 / FormsAuthenticationCredentials.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /***************************************************************************** From machine.config******************************************************************************/ namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.Globalization; using System.IO; using System.Text; using System.Web.Util; using System.ComponentModel; using System.Security.Permissions; // class AuthenticationSection [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class FormsAuthenticationCredentials : ConfigurationElement { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propUsers = new ConfigurationProperty(null, typeof(FormsAuthenticationUserCollection), null, ConfigurationPropertyOptions.IsDefaultCollection); private static readonly ConfigurationProperty _propPasswordFormat = new ConfigurationProperty("passwordFormat", typeof(FormsAuthPasswordFormat), FormsAuthPasswordFormat.SHA1, ConfigurationPropertyOptions.None); static FormsAuthenticationCredentials() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propUsers); _properties.Add(_propPasswordFormat); } public FormsAuthenticationCredentials() { } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("", IsDefaultCollection = true, Options = ConfigurationPropertyOptions.IsDefaultCollection)] public FormsAuthenticationUserCollection Users { get { return (FormsAuthenticationUserCollection)base[_propUsers]; } } [ConfigurationProperty("passwordFormat", DefaultValue = FormsAuthPasswordFormat.SHA1)] public FormsAuthPasswordFormat PasswordFormat { get { return (FormsAuthPasswordFormat)base[_propPasswordFormat]; } set { base[_propPasswordFormat] = value; } } } // class FormsAuthenticationCredentials }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyRef.cs
- ResourceManager.cs
- LogicalExpr.cs
- ColumnBinding.cs
- StylusLogic.cs
- SplitterEvent.cs
- DataBoundControl.cs
- BamlMapTable.cs
- NameValueCollection.cs
- XmlWellformedWriter.cs
- ObservableDictionary.cs
- CriticalFinalizerObject.cs
- CombinedGeometry.cs
- TraceLevelHelper.cs
- ToggleButtonAutomationPeer.cs
- PropertyConverter.cs
- SqlDelegatedTransaction.cs
- SqlDataSourceEnumerator.cs
- ProviderIncompatibleException.cs
- PenContexts.cs
- GreenMethods.cs
- DocumentReferenceCollection.cs
- IISMapPath.cs
- AssociationType.cs
- TriggerAction.cs
- TrustManager.cs
- IgnoreFileBuildProvider.cs
- DataGridViewButtonCell.cs
- CfgSemanticTag.cs
- CategoriesDocumentFormatter.cs
- WindowsTooltip.cs
- HtmlInputText.cs
- IntegerValidator.cs
- OrderedDictionaryStateHelper.cs
- PrivacyNoticeBindingElement.cs
- DesignerHost.cs
- KeyGesture.cs
- DataBoundControlHelper.cs
- XmlSchemaImport.cs
- GCHandleCookieTable.cs
- UpdatePanel.cs
- FontUnitConverter.cs
- ClientType.cs
- AdornerLayer.cs
- SqlReferenceCollection.cs
- CalendarDay.cs
- ReachFixedPageSerializerAsync.cs
- ListControl.cs
- ObjectComplexPropertyMapping.cs
- AndCondition.cs
- CustomAttributeFormatException.cs
- NamespaceList.cs
- PerformanceCounterLib.cs
- DBParameter.cs
- DictionaryBase.cs
- WebRequestModuleElementCollection.cs
- CompensateDesigner.cs
- PropertyDescriptorCollection.cs
- Int64Animation.cs
- BrushMappingModeValidation.cs
- ObjectAnimationBase.cs
- Baml6Assembly.cs
- SafeReversePInvokeHandle.cs
- CodeEntryPointMethod.cs
- EncoderBestFitFallback.cs
- AccessDataSourceView.cs
- PrintPreviewControl.cs
- BitmapEffectInput.cs
- DuplexClientBase.cs
- ModuleElement.cs
- ProxyHelper.cs
- Nodes.cs
- EncoderExceptionFallback.cs
- HttpPostLocalhostServerProtocol.cs
- HotSpotCollectionEditor.cs
- TreeNode.cs
- Geometry3D.cs
- PersonalizationStateInfoCollection.cs
- BuildProvider.cs
- EventArgs.cs
- ChangeProcessor.cs
- PrintPreviewGraphics.cs
- GroupItem.cs
- DataSourceCacheDurationConverter.cs
- PageBuildProvider.cs
- ProfilePropertySettings.cs
- FaultImportOptions.cs
- DrawingCollection.cs
- ConstNode.cs
- WorkflowEnvironment.cs
- RubberbandSelector.cs
- CollectionType.cs
- TextSearch.cs
- ListViewContainer.cs
- HttpCapabilitiesSectionHandler.cs
- SoundPlayerAction.cs
- RuntimeEnvironment.cs
- printdlgexmarshaler.cs
- ZipIOBlockManager.cs
- FileClassifier.cs