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 / 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
- InstanceData.cs
- XmlDomTextWriter.cs
- EncryptedPackageFilter.cs
- ActionFrame.cs
- TypeBuilder.cs
- TransformedBitmap.cs
- SafeArrayTypeMismatchException.cs
- TypeValidationEventArgs.cs
- OleDbParameter.cs
- shaperfactoryquerycachekey.cs
- SelectionListDesigner.cs
- ImageMetadata.cs
- DataControlPagerLinkButton.cs
- DataStreams.cs
- FeatureSupport.cs
- StateMachine.cs
- EdmSchemaError.cs
- _LocalDataStoreMgr.cs
- BuildResult.cs
- EntityStoreSchemaGenerator.cs
- ArraySortHelper.cs
- XamlStyleSerializer.cs
- SimpleExpression.cs
- TransformationRules.cs
- _ListenerResponseStream.cs
- QueryResult.cs
- ExtensionSimplifierMarkupObject.cs
- ConfigurationStrings.cs
- AutomationPropertyInfo.cs
- ListViewContainer.cs
- Queue.cs
- SqlInternalConnectionSmi.cs
- PropertyCollection.cs
- SweepDirectionValidation.cs
- KerberosRequestorSecurityToken.cs
- XmlMemberMapping.cs
- SourceFileBuildProvider.cs
- RelatedPropertyManager.cs
- RichTextBox.cs
- wmiprovider.cs
- CompiledQueryCacheEntry.cs
- SecUtil.cs
- CompareValidator.cs
- IndexedSelectQueryOperator.cs
- DataGridToolTip.cs
- Cursor.cs
- ISCIIEncoding.cs
- VersionConverter.cs
- EventDriven.cs
- _NativeSSPI.cs
- BinaryUtilClasses.cs
- SessionMode.cs
- WeakReferenceEnumerator.cs
- ParseNumbers.cs
- StreamWriter.cs
- ServicePoint.cs
- DynamicMethod.cs
- OleDbConnectionFactory.cs
- DocumentPageView.cs
- OleDbParameter.cs
- DataSetUtil.cs
- FileNotFoundException.cs
- BaseContextMenu.cs
- SurrogateSelector.cs
- ImageInfo.cs
- ProfileModule.cs
- MergablePropertyAttribute.cs
- SortedSet.cs
- DES.cs
- CompiledXpathExpr.cs
- ProxyWebPartConnectionCollection.cs
- IIS7WorkerRequest.cs
- ZipPackage.cs
- TextTreeRootNode.cs
- SystemShuttingDownException.cs
- SafeProcessHandle.cs
- InputLangChangeRequestEvent.cs
- SerializableAuthorizationContext.cs
- Events.cs
- ItemAutomationPeer.cs
- UniqueConstraint.cs
- StateManagedCollection.cs
- LicFileLicenseProvider.cs
- BidirectionalDictionary.cs
- SqlServices.cs
- DoubleAnimationUsingKeyFrames.cs
- MenuCommand.cs
- SqlUserDefinedTypeAttribute.cs
- ServiceReference.cs
- Binding.cs
- IPAddressCollection.cs
- DataStorage.cs
- PolicyManager.cs
- ProfileService.cs
- DetailsView.cs
- EditorPartCollection.cs
- ImmutableCollection.cs
- ResourceReferenceKeyNotFoundException.cs
- CreateSequence.cs
- ReflectionTypeLoadException.cs