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
- RegistryExceptionHelper.cs
- WrappedIUnknown.cs
- QueryOutputWriter.cs
- TreeNodeConverter.cs
- AuthenticationSchemesHelper.cs
- DocumentXPathNavigator.cs
- ToolStripDesignerUtils.cs
- SignatureHelper.cs
- CacheChildrenQuery.cs
- ListViewCancelEventArgs.cs
- CreateDataSourceDialog.cs
- SerialPinChanges.cs
- AgileSafeNativeMemoryHandle.cs
- SequenceDesigner.xaml.cs
- ObjectListCommandsPage.cs
- wgx_commands.cs
- BufferModeSettings.cs
- DesignerCommandAdapter.cs
- CodeGen.cs
- NamespaceTable.cs
- SafeTimerHandle.cs
- assemblycache.cs
- PlanCompilerUtil.cs
- ZoneIdentityPermission.cs
- DefinitionBase.cs
- HandleRef.cs
- ReadOnlyCollection.cs
- WebControl.cs
- MemberInfoSerializationHolder.cs
- BitmapEffectrendercontext.cs
- LinkTarget.cs
- ArgumentOutOfRangeException.cs
- ArrangedElementCollection.cs
- DynamicAttribute.cs
- ElementUtil.cs
- ToolStripDropDownClosingEventArgs.cs
- Setter.cs
- _ListenerRequestStream.cs
- PersistNameAttribute.cs
- WinInet.cs
- ToolboxItem.cs
- TimeSpanValidatorAttribute.cs
- RegexParser.cs
- FlowDocumentReaderAutomationPeer.cs
- SerialReceived.cs
- TableCell.cs
- ImportContext.cs
- StringFunctions.cs
- XmlSchema.cs
- Color.cs
- SamlAction.cs
- SessionSwitchEventArgs.cs
- MenuItemStyleCollection.cs
- MaskedTextProvider.cs
- HttpModuleCollection.cs
- HtmlInputHidden.cs
- CallbackValidator.cs
- TreeChangeInfo.cs
- ArglessEventHandlerProxy.cs
- ExtendedPropertyDescriptor.cs
- StringComparer.cs
- InstanceDataCollectionCollection.cs
- FormDocumentDesigner.cs
- DelimitedListTraceListener.cs
- EventLogTraceListener.cs
- NameTable.cs
- HtmlPhoneCallAdapter.cs
- FormatterServices.cs
- HiddenField.cs
- XmlReflectionMember.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- ProfileBuildProvider.cs
- PersonalizationEntry.cs
- ReplacementText.cs
- CustomMenuItemCollection.cs
- StickyNoteHelper.cs
- ResourceContainer.cs
- WorkflowControlEndpoint.cs
- Lasso.cs
- SessionParameter.cs
- ConnectionConsumerAttribute.cs
- WebDescriptionAttribute.cs
- WebServiceEnumData.cs
- ValidatorCollection.cs
- TextServicesContext.cs
- SafeNativeMethods.cs
- RemotingServices.cs
- parserscommon.cs
- NamespaceTable.cs
- InvokeProviderWrapper.cs
- AccessViolationException.cs
- BrowsableAttribute.cs
- ReadOnlyDataSourceView.cs
- ModelTreeManager.cs
- XPathMultyIterator.cs
- SyndicationSerializer.cs
- TextBoxAutomationPeer.cs
- X509CertificateValidator.cs
- DynamicExpression.cs
- FormsAuthentication.cs