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
- ThreadAbortException.cs
- ConnectionManagementElementCollection.cs
- DocumentApplicationDocumentViewer.cs
- XmlILIndex.cs
- X509Extension.cs
- PeerToPeerException.cs
- ProvidersHelper.cs
- PageCopyCount.cs
- EntityContainerRelationshipSetEnd.cs
- WpfMemberInvoker.cs
- OdbcEnvironment.cs
- SecurityTokenResolver.cs
- List.cs
- OleDbException.cs
- CultureTable.cs
- ClusterRegistryConfigurationProvider.cs
- EdmComplexTypeAttribute.cs
- EditorZone.cs
- DatatypeImplementation.cs
- Expander.cs
- oledbconnectionstring.cs
- Main.cs
- TemplateAction.cs
- ListViewInsertEventArgs.cs
- SelectionWordBreaker.cs
- PenLineJoinValidation.cs
- SamlAuthenticationClaimResource.cs
- TableCell.cs
- PageAsyncTaskManager.cs
- HtmlInputButton.cs
- ClientApiGenerator.cs
- PackageRelationship.cs
- FixedDSBuilder.cs
- MemberInfoSerializationHolder.cs
- X509Chain.cs
- TargetException.cs
- JsonUriDataContract.cs
- WsdlBuildProvider.cs
- precedingquery.cs
- ValidationSummary.cs
- PasswordRecovery.cs
- StringToken.cs
- Pen.cs
- ImplicitInputBrush.cs
- _NtlmClient.cs
- GeometryModel3D.cs
- ImmutablePropertyDescriptorGridEntry.cs
- XMLUtil.cs
- ClrProviderManifest.cs
- CompoundFileDeflateTransform.cs
- BitConverter.cs
- LockedBorderGlyph.cs
- ForwardPositionQuery.cs
- BrowserCapabilitiesCompiler.cs
- InfoCardProofToken.cs
- __FastResourceComparer.cs
- IProvider.cs
- XmlDownloadManager.cs
- ToolStripContextMenu.cs
- Brushes.cs
- AsynchronousChannel.cs
- InvokerUtil.cs
- EntityCommand.cs
- PeerApplicationLaunchInfo.cs
- LinqExpressionNormalizer.cs
- HeaderedItemsControl.cs
- BorderGapMaskConverter.cs
- ResourceDescriptionAttribute.cs
- BamlTreeNode.cs
- SqlProviderManifest.cs
- BamlTreeUpdater.cs
- __Filters.cs
- WebServiceData.cs
- SystemWebSectionGroup.cs
- InstallHelper.cs
- BasicHttpBindingCollectionElement.cs
- InkCanvasSelectionAdorner.cs
- TypeDescriptionProvider.cs
- BitArray.cs
- MouseGestureValueSerializer.cs
- WebServiceEnumData.cs
- LineServices.cs
- DirectoryInfo.cs
- Point3DAnimationUsingKeyFrames.cs
- SiteMembershipCondition.cs
- ExtensionSimplifierMarkupObject.cs
- XXXInfos.cs
- CompilationRelaxations.cs
- KeyGesture.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- WindowsListViewScroll.cs
- LocatorPartList.cs
- KeyGestureConverter.cs
- PerformanceCounterPermissionEntry.cs
- ServiceBehaviorAttribute.cs
- XmlSchemaSimpleTypeUnion.cs
- ContextStack.cs
- CaseInsensitiveOrdinalStringComparer.cs
- MulticastDelegate.cs
- HostingMessageProperty.cs