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
- OracleTimeSpan.cs
- XmlSchemaException.cs
- FieldAccessException.cs
- MessageBox.cs
- HtmlElementCollection.cs
- TextPointer.cs
- WebBaseEventKeyComparer.cs
- PageRouteHandler.cs
- Line.cs
- MailMessageEventArgs.cs
- Pkcs9Attribute.cs
- UrlMappingsModule.cs
- UIElementParagraph.cs
- DiscoveryOperationContextExtension.cs
- TextEvent.cs
- StoreAnnotationsMap.cs
- RealizedColumnsBlock.cs
- DataGridParentRows.cs
- XmlSchemaAnnotated.cs
- DetailsViewInsertedEventArgs.cs
- LineServicesRun.cs
- ScriptingScriptResourceHandlerSection.cs
- PointHitTestParameters.cs
- SQLMembershipProvider.cs
- TraceRecords.cs
- StatusStrip.cs
- DataColumnMappingCollection.cs
- DbParameterHelper.cs
- EncoderReplacementFallback.cs
- DrawingGroup.cs
- CodeParameterDeclarationExpressionCollection.cs
- PkcsUtils.cs
- NopReturnReader.cs
- DataBindEngine.cs
- UpdatePanel.cs
- RightsManagementEncryptionTransform.cs
- WebUtil.cs
- ResourceCategoryAttribute.cs
- XsltException.cs
- SurrogateChar.cs
- wgx_exports.cs
- DataKey.cs
- PointLightBase.cs
- ConfigurationManagerHelper.cs
- RevocationPoint.cs
- TextLineBreak.cs
- SqlLiftIndependentRowExpressions.cs
- DBDataPermissionAttribute.cs
- XmlQueryStaticData.cs
- IssuedTokenParametersElement.cs
- WebReferencesBuildProvider.cs
- ToolStripSettings.cs
- ListViewHitTestInfo.cs
- MatrixTransform3D.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- Util.cs
- FormViewRow.cs
- WeakEventManager.cs
- FixedTextPointer.cs
- DataGridViewColumn.cs
- PackWebRequestFactory.cs
- TextBoxBase.cs
- Environment.cs
- Baml6ConstructorInfo.cs
- ScriptResourceHandler.cs
- EmptyStringExpandableObjectConverter.cs
- CodeConditionStatement.cs
- TextStore.cs
- CodeRegionDirective.cs
- HMAC.cs
- SwitchLevelAttribute.cs
- ActivityExecutor.cs
- SqlConnectionHelper.cs
- CheckBoxStandardAdapter.cs
- UnaryNode.cs
- IApplicationTrustManager.cs
- HistoryEventArgs.cs
- PinnedBufferMemoryStream.cs
- ToolCreatedEventArgs.cs
- AutomationPropertyInfo.cs
- OAVariantLib.cs
- FontSizeConverter.cs
- UIInitializationException.cs
- ZoomPercentageConverter.cs
- SimpleWorkerRequest.cs
- CommentEmitter.cs
- EdmMember.cs
- ChildTable.cs
- X509ServiceCertificateAuthenticationElement.cs
- SemanticResolver.cs
- PropagatorResult.cs
- TCEAdapterGenerator.cs
- DocumentCollection.cs
- ScriptBehaviorDescriptor.cs
- ParagraphResult.cs
- LogLogRecordHeader.cs
- FormsAuthentication.cs
- ProfileBuildProvider.cs
- WebConfigurationFileMap.cs
- ListViewContainer.cs