Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / Configuration / ProfileGroupSettings.cs / 1 / 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 } // 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.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 } // 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
- DataShape.cs
- DSACryptoServiceProvider.cs
- DrawItemEvent.cs
- XPathNavigatorKeyComparer.cs
- PowerModeChangedEventArgs.cs
- EntityDataSourceWrapperCollection.cs
- BrushValueSerializer.cs
- HuffmanTree.cs
- PaginationProgressEventArgs.cs
- BaseProcessor.cs
- XmlChildNodes.cs
- ServiceModelActivationSectionGroup.cs
- XmlAnyElementAttribute.cs
- CompModSwitches.cs
- WebPartConnectionCollection.cs
- ModuleConfigurationInfo.cs
- FloaterParagraph.cs
- ReadWriteSpinLock.cs
- LayoutTable.cs
- ServiceHostFactory.cs
- GenericTypeParameterBuilder.cs
- Thumb.cs
- PrincipalPermission.cs
- FakeModelPropertyImpl.cs
- DrawingState.cs
- UserPersonalizationStateInfo.cs
- ValidatorCollection.cs
- PackageDigitalSignatureManager.cs
- Claim.cs
- FixedSOMPageConstructor.cs
- DefaultTextStoreTextComposition.cs
- DaylightTime.cs
- AdornerHitTestResult.cs
- MD5CryptoServiceProvider.cs
- Timer.cs
- FacetDescriptionElement.cs
- CheckBoxRenderer.cs
- WebHttpBinding.cs
- DiagnosticTrace.cs
- RootContext.cs
- HandlerWithFactory.cs
- FramingFormat.cs
- TokenBasedSet.cs
- ColorPalette.cs
- Int32CollectionConverter.cs
- DataListItemEventArgs.cs
- DbQueryCommandTree.cs
- WindowsHyperlink.cs
- ColumnWidthChangingEvent.cs
- FilterFactory.cs
- ConsumerConnectionPointCollection.cs
- DataGridColumnCollection.cs
- DynamicArgumentDialog.cs
- Separator.cs
- DataGridColumn.cs
- WebAdminConfigurationHelper.cs
- HtmlInputButton.cs
- GradientSpreadMethodValidation.cs
- WebContext.cs
- DynamicPropertyHolder.cs
- SecureConversationServiceElement.cs
- UpDownEvent.cs
- RuleRefElement.cs
- Viewport3DAutomationPeer.cs
- LogConverter.cs
- EncodingNLS.cs
- TemplateInstanceAttribute.cs
- RayMeshGeometry3DHitTestResult.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- newinstructionaction.cs
- RSACryptoServiceProvider.cs
- Oci.cs
- TrustManagerPromptUI.cs
- BamlRecordReader.cs
- exports.cs
- TextElementCollection.cs
- PictureBox.cs
- ParameterBuilder.cs
- ToolStripScrollButton.cs
- ClientEventManager.cs
- PrintEvent.cs
- MissingFieldException.cs
- SymmetricKey.cs
- QueryOperator.cs
- RequestResizeEvent.cs
- AnimationException.cs
- SourceFileInfo.cs
- TypeDefinition.cs
- ColumnMapProcessor.cs
- FilterException.cs
- CompareInfo.cs
- AssignDesigner.xaml.cs
- ExpressionVisitor.cs
- ToolStripItemDesigner.cs
- ActivationServices.cs
- GridItemPattern.cs
- ClientApiGenerator.cs
- IListConverters.cs
- BrowserDefinitionCollection.cs
- MailDefinition.cs