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
- HTMLTagNameToTypeMapper.cs
- ValidationSummary.cs
- BamlBinaryReader.cs
- RadioButtonAutomationPeer.cs
- GPPOINTF.cs
- RuleInfoComparer.cs
- TextRunProperties.cs
- ViewKeyConstraint.cs
- ByteViewer.cs
- WindowPatternIdentifiers.cs
- Listbox.cs
- ArraySubsetEnumerator.cs
- ModelItemKeyValuePair.cs
- ProviderMetadataCachedInformation.cs
- WebPartDisplayModeEventArgs.cs
- TableLayoutPanelBehavior.cs
- PropertyItemInternal.cs
- RawAppCommandInputReport.cs
- ScalarConstant.cs
- Mutex.cs
- EmptyEnumerator.cs
- XmlAnyElementAttribute.cs
- SourceFileInfo.cs
- FtpRequestCacheValidator.cs
- PropagatorResult.cs
- RangeValuePattern.cs
- TextElementEnumerator.cs
- SiteMapNodeItemEventArgs.cs
- SqlDataSourceView.cs
- XsltInput.cs
- FileEnumerator.cs
- UidManager.cs
- SrgsGrammarCompiler.cs
- Expression.cs
- CodeExporter.cs
- FileUpload.cs
- PrefixQName.cs
- IdentityReference.cs
- TraceXPathNavigator.cs
- MruCache.cs
- SecurityPermission.cs
- assemblycache.cs
- ToolStripRendererSwitcher.cs
- WindowsListBox.cs
- TransformerTypeCollection.cs
- EventDescriptorCollection.cs
- IndicShape.cs
- UTF32Encoding.cs
- WindowsStatic.cs
- TreeView.cs
- SourceFileInfo.cs
- XmlSerializationReader.cs
- SessionEndingEventArgs.cs
- HttpValueCollection.cs
- HijriCalendar.cs
- CodeChecksumPragma.cs
- invalidudtexception.cs
- DesignerActionList.cs
- FixedTextContainer.cs
- HtmlInputReset.cs
- AddingNewEventArgs.cs
- BitVector32.cs
- KnownBoxes.cs
- WindowsScrollBarBits.cs
- ArgumentNullException.cs
- ToolStripDropDown.cs
- VirtualPathUtility.cs
- EFAssociationProvider.cs
- SmiEventSink_DeferedProcessing.cs
- ImageCollectionCodeDomSerializer.cs
- Splitter.cs
- InfoCardAsymmetricCrypto.cs
- CheckBoxFlatAdapter.cs
- Delegate.cs
- WebBrowsableAttribute.cs
- ExtenderProvidedPropertyAttribute.cs
- CancelAsyncOperationRequest.cs
- PointLightBase.cs
- CqlParserHelpers.cs
- Thickness.cs
- ChildDocumentBlock.cs
- Win32.cs
- PlanCompilerUtil.cs
- ResourcePool.cs
- XmlComment.cs
- nulltextnavigator.cs
- GraphicsContainer.cs
- Queue.cs
- UrlMappingsModule.cs
- PolygonHotSpot.cs
- CodeAttachEventStatement.cs
- ServiceContractListItem.cs
- SymbolDocumentInfo.cs
- InkCanvasSelectionAdorner.cs
- DictionarySectionHandler.cs
- GridViewRowEventArgs.cs
- ObjectListCommandsPage.cs
- xmlglyphRunInfo.cs
- DoubleLinkListEnumerator.cs
- DetailsView.cs