Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / ProfileGroupSettings.cs / 2 / ProfileGroupSettings.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System; using System.Xml; using System.Configuration; using System.Collections.Specialized; using System.Collections; using System.IO; using System.Text; using System.Web.Util; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ProfileGroupSettings : ConfigurationElement { private static ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propName = new ConfigurationProperty("name", typeof(string), null, null, ProfilePropertyNameValidator.SingletonInstance, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey); private static readonly ConfigurationProperty _propProperties = new ConfigurationProperty(null, typeof(ProfilePropertySettingsCollection), null, ConfigurationPropertyOptions.IsDefaultCollection); static ProfileGroupSettings() { // Property initialization _properties = new ConfigurationPropertyCollection(); _properties.Add(_propName); _properties.Add(_propProperties); } internal void InternalDeserialize(XmlReader reader, bool serializeCollectionKey) { DeserializeElement(reader, serializeCollectionKey); } internal ProfileGroupSettings() { } public ProfileGroupSettings(string name) { base[_propName] = name; } public override bool Equals(object obj) { ProfileGroupSettings o = obj as ProfileGroupSettings; return (o != null && Name == o.Name && Object.Equals(PropertySettings, o.PropertySettings)); } public override int GetHashCode() { return Name.GetHashCode() ^ PropertySettings.GetHashCode(); } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } [ConfigurationProperty("name", IsRequired = true, IsKey = true)] public string Name { get { return (string)base[_propName]; } } [ConfigurationProperty("", IsDefaultCollection = true)] public ProfilePropertySettingsCollection PropertySettings { get { return (ProfilePropertySettingsCollection)base[_propProperties]; } } internal void InternalReset(ProfileGroupSettings parentSettings) { base.Reset(parentSettings); } internal void InternalUnmerge(ConfigurationElement sourceElement, ConfigurationElement parentElement, ConfigurationSaveMode saveMode) { base.Unmerge(sourceElement, parentElement, saveMode); // Base merge to get locks merged } } // class ProfileGroupSettings }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Utils.cs
- InvalidCastException.cs
- UserMapPath.cs
- BmpBitmapDecoder.cs
- FixedPage.cs
- SmiRecordBuffer.cs
- QueryCacheKey.cs
- ProviderUtil.cs
- RuntimeEnvironment.cs
- HttpApplication.cs
- SystemTcpConnection.cs
- MailMessageEventArgs.cs
- Options.cs
- Char.cs
- ReturnType.cs
- MemberExpression.cs
- SecurityTokenSerializer.cs
- EnumValidator.cs
- SAPIEngineTypes.cs
- TransformerTypeCollection.cs
- XmlElement.cs
- MorphHelpers.cs
- PeekCompletedEventArgs.cs
- SmtpTransport.cs
- InvalidAsynchronousStateException.cs
- SettingsPropertyWrongTypeException.cs
- ErrorTolerantObjectWriter.cs
- ElementNotEnabledException.cs
- KeysConverter.cs
- KeyEvent.cs
- EndpointConfigContainer.cs
- XmlText.cs
- Command.cs
- ListSortDescriptionCollection.cs
- HelpPage.cs
- InfoCardMasterKey.cs
- DataBoundControlAdapter.cs
- ExpressionEditorAttribute.cs
- DataGridViewColumnConverter.cs
- Point4D.cs
- XsltArgumentList.cs
- FormViewPagerRow.cs
- SrgsToken.cs
- TableLayoutPanelDesigner.cs
- OpenTypeLayout.cs
- XamlSerializationHelper.cs
- GeometryDrawing.cs
- TrustManagerPromptUI.cs
- HttpException.cs
- WebPageTraceListener.cs
- SqlCommandSet.cs
- LocatorPart.cs
- ListParagraph.cs
- XmlSchemaImporter.cs
- dataobject.cs
- TlsnegoTokenAuthenticator.cs
- DBProviderConfigurationHandler.cs
- invalidudtexception.cs
- MenuCommand.cs
- SQLInt32Storage.cs
- PtsCache.cs
- SystemColors.cs
- PlaceHolder.cs
- _IPv4Address.cs
- HttpProtocolReflector.cs
- ProfileSettingsCollection.cs
- ResponseStream.cs
- CompositeKey.cs
- SchemaNamespaceManager.cs
- WebPartPersonalization.cs
- DataQuery.cs
- RuntimeEnvironment.cs
- WebFormDesignerActionService.cs
- ConnectivityStatus.cs
- NamedPipeChannelListener.cs
- NotifyInputEventArgs.cs
- WindowsFont.cs
- TreePrinter.cs
- SettingsPropertyIsReadOnlyException.cs
- PersianCalendar.cs
- LinkLabel.cs
- BasePropertyDescriptor.cs
- SecurityDocument.cs
- LayoutUtils.cs
- DataGridTextColumn.cs
- CheckBox.cs
- GridViewHeaderRowPresenter.cs
- TextEditorTables.cs
- ContextMenuStrip.cs
- FamilyTypeface.cs
- HttpCookie.cs
- versioninfo.cs
- Point4DValueSerializer.cs
- CrossContextChannel.cs
- TypeUtils.cs
- Window.cs
- _SingleItemRequestCache.cs
- HTMLTextWriter.cs
- ContextMenu.cs
- DataGridViewElement.cs