Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Profile / HttpProfileGroupBase.cs / 1 / HttpProfileGroupBase.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * ProfileGroupBase * * Copyright (c) 2002 Microsoft Corporation */ namespace System.Web.Profile { using System.Security.Principal; using System.Security.Permissions; using System.Collections; using System.Collections.Specialized; using System.Web.Configuration; using System.Web.Util; using System.Web.Security; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class ProfileGroupBase { public object this[string propertyName] { get { return _Parent[_MyName + propertyName];} set { _Parent[_MyName + propertyName] = value; } } public object GetPropertyValue(string propertyName) { return _Parent[_MyName + propertyName]; } public void SetPropertyValue(string propertyName, object propertyValue) { _Parent[_MyName + propertyName] = propertyValue; } //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// public ProfileGroupBase() { _Parent = null; _MyName = null; } public void Init(ProfileBase parent, string myName) { if (_Parent == null) { _Parent = parent; _MyName = myName + "."; } } private string _MyName; private ProfileBase _Parent; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * ProfileGroupBase * * Copyright (c) 2002 Microsoft Corporation */ namespace System.Web.Profile { using System.Security.Principal; using System.Security.Permissions; using System.Collections; using System.Collections.Specialized; using System.Web.Configuration; using System.Web.Util; using System.Web.Security; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class ProfileGroupBase { public object this[string propertyName] { get { return _Parent[_MyName + propertyName];} set { _Parent[_MyName + propertyName] = value; } } public object GetPropertyValue(string propertyName) { return _Parent[_MyName + propertyName]; } public void SetPropertyValue(string propertyName, object propertyValue) { _Parent[_MyName + propertyName] = propertyValue; } //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// public ProfileGroupBase() { _Parent = null; _MyName = null; } public void Init(ProfileBase parent, string myName) { if (_Parent == null) { _Parent = parent; _MyName = myName + "."; } } private string _MyName; private ProfileBase _Parent; } } // 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
- PolicyManager.cs
- MethodToken.cs
- HasCopySemanticsAttribute.cs
- PropertySegmentSerializer.cs
- FlagsAttribute.cs
- CustomValidator.cs
- DesignerSerializerAttribute.cs
- ColumnCollection.cs
- DateTimeValueSerializerContext.cs
- IntegerValidator.cs
- ProgressChangedEventArgs.cs
- ListenerAdapter.cs
- TaskDesigner.cs
- Compiler.cs
- ProviderIncompatibleException.cs
- CodeAccessSecurityEngine.cs
- AppModelKnownContentFactory.cs
- X509CertificateClaimSet.cs
- StateItem.cs
- HttpChannelListener.cs
- TypeBuilderInstantiation.cs
- SessionState.cs
- PrintDialog.cs
- CombinedGeometry.cs
- EnvironmentPermission.cs
- EventSinkHelperWriter.cs
- CalendarDesigner.cs
- DrawingContextWalker.cs
- ValidationHelpers.cs
- StorageMappingItemLoader.cs
- DataGridSortCommandEventArgs.cs
- Size3D.cs
- AsyncCompletedEventArgs.cs
- PropertyManager.cs
- ItemList.cs
- TypedTableBaseExtensions.cs
- OrderedDictionaryStateHelper.cs
- OutputCacheProfile.cs
- ProcessInfo.cs
- HtmlTitle.cs
- ISFTagAndGuidCache.cs
- SchemaImporterExtension.cs
- InputBinder.cs
- ReflectionHelper.cs
- HyperLink.cs
- RbTree.cs
- SpanIndex.cs
- Encoding.cs
- Decimal.cs
- SqlPersistenceProviderFactory.cs
- FrameworkContentElementAutomationPeer.cs
- Console.cs
- IteratorFilter.cs
- SchemaType.cs
- OutOfMemoryException.cs
- ResourcePermissionBaseEntry.cs
- ClosableStream.cs
- EpmCustomContentDeSerializer.cs
- HttpCachePolicy.cs
- ImageSourceValueSerializer.cs
- ItemsPanelTemplate.cs
- SQLBytesStorage.cs
- DataContractSerializer.cs
- DataGridLengthConverter.cs
- TTSVoice.cs
- OutputCacheProfileCollection.cs
- PersonalizableTypeEntry.cs
- _NtlmClient.cs
- WindowsRebar.cs
- SessionStateModule.cs
- LocalTransaction.cs
- PackageStore.cs
- Regex.cs
- HtmlElement.cs
- OleServicesContext.cs
- TextSchema.cs
- ProfileServiceManager.cs
- DeclarationUpdate.cs
- FieldNameLookup.cs
- IncrementalHitTester.cs
- TextSimpleMarkerProperties.cs
- Array.cs
- SessionStateModule.cs
- MatchAllMessageFilter.cs
- TabControl.cs
- DataPagerFieldItem.cs
- TablePatternIdentifiers.cs
- ColorBlend.cs
- ViewStateModeByIdAttribute.cs
- CommentEmitter.cs
- CollectionView.cs
- ScheduleChanges.cs
- WebPartCatalogAddVerb.cs
- GridItemCollection.cs
- AnonymousIdentificationModule.cs
- ImageAnimator.cs
- Literal.cs
- infer.cs
- ServicePerformanceCounters.cs
- DataListGeneralPage.cs