Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / Configuration / FormsAuthenticationUser.cs / 1 / FormsAuthenticationUser.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;
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class FormsAuthenticationUser : ConfigurationElement {
private static ConfigurationPropertyCollection _properties;
private static readonly ConfigurationProperty _propName =
new ConfigurationProperty("name",
typeof(string),
"",
new LowerCaseStringConverter(),
null,
ConfigurationPropertyOptions.IsRequired |
ConfigurationPropertyOptions.IsKey);
private static readonly ConfigurationProperty _propPassword =
new ConfigurationProperty("password",
typeof(string),
"",
ConfigurationPropertyOptions.IsRequired);
static FormsAuthenticationUser() {
// Property initialization
_properties = new ConfigurationPropertyCollection();
_properties.Add(_propName);
_properties.Add(_propPassword);
}
internal FormsAuthenticationUser() {
}
public FormsAuthenticationUser(String name, String password)
: this() {
Name = name.ToLower(CultureInfo.InvariantCulture);
Password = password;
}
protected override ConfigurationPropertyCollection Properties {
get {
return _properties;
}
}
[ConfigurationProperty("name", IsRequired = true, IsKey = true, DefaultValue = "")]
[TypeConverter(typeof(LowerCaseStringConverter))]
[StringValidator()]
public string Name {
get {
return (string)base[_propName];
}
set {
base[_propName] = value;
}
}
[ConfigurationProperty("password", IsRequired = true, DefaultValue = "")]
[StringValidator()]
public string Password {
get {
return (string)base[_propPassword];
}
set {
base[_propPassword] = value;
}
}
} // class FormsAuthenticationUser
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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;
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class FormsAuthenticationUser : ConfigurationElement {
private static ConfigurationPropertyCollection _properties;
private static readonly ConfigurationProperty _propName =
new ConfigurationProperty("name",
typeof(string),
"",
new LowerCaseStringConverter(),
null,
ConfigurationPropertyOptions.IsRequired |
ConfigurationPropertyOptions.IsKey);
private static readonly ConfigurationProperty _propPassword =
new ConfigurationProperty("password",
typeof(string),
"",
ConfigurationPropertyOptions.IsRequired);
static FormsAuthenticationUser() {
// Property initialization
_properties = new ConfigurationPropertyCollection();
_properties.Add(_propName);
_properties.Add(_propPassword);
}
internal FormsAuthenticationUser() {
}
public FormsAuthenticationUser(String name, String password)
: this() {
Name = name.ToLower(CultureInfo.InvariantCulture);
Password = password;
}
protected override ConfigurationPropertyCollection Properties {
get {
return _properties;
}
}
[ConfigurationProperty("name", IsRequired = true, IsKey = true, DefaultValue = "")]
[TypeConverter(typeof(LowerCaseStringConverter))]
[StringValidator()]
public string Name {
get {
return (string)base[_propName];
}
set {
base[_propName] = value;
}
}
[ConfigurationProperty("password", IsRequired = true, DefaultValue = "")]
[StringValidator()]
public string Password {
get {
return (string)base[_propPassword];
}
set {
base[_propPassword] = value;
}
}
} // class FormsAuthenticationUser
}
// 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
- RowVisual.cs
- ExpressionReplacer.cs
- HiddenField.cs
- MoveSizeWinEventHandler.cs
- ResetableIterator.cs
- PartitionerStatic.cs
- XPathNode.cs
- CodeNamespaceImportCollection.cs
- StringValidatorAttribute.cs
- CharConverter.cs
- X509Extension.cs
- SystemFonts.cs
- HttpListenerRequest.cs
- DataGridRowClipboardEventArgs.cs
- XsdCachingReader.cs
- ReflectTypeDescriptionProvider.cs
- XmlNodeComparer.cs
- LoginUtil.cs
- BoolLiteral.cs
- DataExpression.cs
- InputLanguageEventArgs.cs
- ResXResourceWriter.cs
- SemanticAnalyzer.cs
- ReliableOutputSessionChannel.cs
- Events.cs
- Panel.cs
- WS2007HttpBindingCollectionElement.cs
- EdmFunction.cs
- ProxyWebPartConnectionCollection.cs
- PermissionToken.cs
- XmlArrayItemAttribute.cs
- WebServiceReceive.cs
- XmlIlGenerator.cs
- MdiWindowListItemConverter.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- StyleCollection.cs
- RepeaterItem.cs
- Flowchart.cs
- SHA256.cs
- ArrangedElementCollection.cs
- AnnotationMap.cs
- SqlBulkCopyColumnMapping.cs
- FileDialog.cs
- HttpCapabilitiesSectionHandler.cs
- BitmapEffectRenderDataResource.cs
- HealthMonitoringSectionHelper.cs
- ResponseStream.cs
- Graph.cs
- Int32.cs
- StructuredCompositeActivityDesigner.cs
- SoapWriter.cs
- _Rfc2616CacheValidators.cs
- RandomNumberGenerator.cs
- DESCryptoServiceProvider.cs
- NumberFormatter.cs
- ConstraintManager.cs
- SrgsRule.cs
- DescendantOverDescendantQuery.cs
- ConcurrencyBehavior.cs
- SoapEnumAttribute.cs
- DoWhileDesigner.xaml.cs
- NavigationPropertyAccessor.cs
- MouseGestureValueSerializer.cs
- CompositeDuplexBindingElement.cs
- mongolianshape.cs
- Journal.cs
- _AcceptOverlappedAsyncResult.cs
- mansign.cs
- SecureConversationDriver.cs
- newinstructionaction.cs
- AuthenticatedStream.cs
- LongValidator.cs
- WorkflowApplicationAbortedException.cs
- CombinedGeometry.cs
- FlowDocumentReaderAutomationPeer.cs
- OrderPreservingSpoolingTask.cs
- SiteMapNodeItemEventArgs.cs
- CorrelationTokenTypeConvertor.cs
- MimeObjectFactory.cs
- SrgsElementFactory.cs
- SingleObjectCollection.cs
- LinqDataSourceHelper.cs
- TemplateNodeContextMenu.cs
- MappedMetaModel.cs
- ConnectionProviderAttribute.cs
- BasicHttpSecurityElement.cs
- FillRuleValidation.cs
- SqlCacheDependencySection.cs
- EncryptedType.cs
- SpanIndex.cs
- WorkflowOwnerAsyncResult.cs
- ClonableStack.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- RequestCacheValidator.cs
- CultureTableRecord.cs
- SessionStateSection.cs
- VirtualDirectoryMappingCollection.cs
- FolderNameEditor.cs
- Light.cs
- Perspective.cs