Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypedDataSourceCodeGenerator.cs
- ScriptManager.cs
- COM2ICategorizePropertiesHandler.cs
- X509ScopedServiceCertificateElement.cs
- EventLog.cs
- DataServiceQueryException.cs
- FixedDocument.cs
- SafeHGlobalHandleCritical.cs
- PrimitiveSchema.cs
- ConstNode.cs
- TextEditorTables.cs
- DataSourceSelectArguments.cs
- TableRowCollection.cs
- CookieProtection.cs
- XmlQueryContext.cs
- ConstraintManager.cs
- HtmlContainerControl.cs
- SafeRegistryKey.cs
- AspNetCompatibilityRequirementsMode.cs
- ConfigurationSection.cs
- ConfigXmlAttribute.cs
- PlanCompilerUtil.cs
- DependencySource.cs
- XmlSiteMapProvider.cs
- WSHttpTransportSecurityElement.cs
- XsltArgumentList.cs
- PresentationSource.cs
- BaseValidatorDesigner.cs
- MultiPageTextView.cs
- LayoutTableCell.cs
- StringConcat.cs
- Boolean.cs
- SqlDataReader.cs
- MatrixValueSerializer.cs
- FixedFlowMap.cs
- GridViewRowPresenterBase.cs
- XmlTypeMapping.cs
- FileLogRecordEnumerator.cs
- EmbeddedMailObject.cs
- WindowsScroll.cs
- DbConnectionPool.cs
- DataRowExtensions.cs
- ResourceReferenceExpressionConverter.cs
- COM2Properties.cs
- AnimationLayer.cs
- XmlSchemaObjectTable.cs
- MetadataItemSerializer.cs
- SplitterEvent.cs
- SqlDataReaderSmi.cs
- BuildProviderAppliesToAttribute.cs
- HttpPostedFile.cs
- ListView.cs
- DataGridViewRowPostPaintEventArgs.cs
- ListViewInsertEventArgs.cs
- BaseAsyncResult.cs
- Int16KeyFrameCollection.cs
- SoapException.cs
- StorageMappingItemCollection.cs
- JsonFormatGeneratorStatics.cs
- Int64KeyFrameCollection.cs
- Label.cs
- SafeCoTaskMem.cs
- Property.cs
- BidPrivateBase.cs
- TextBoxAutoCompleteSourceConverter.cs
- NGCPageContentSerializerAsync.cs
- FormattedTextSymbols.cs
- VirtualPath.cs
- arabicshape.cs
- UnmanagedMemoryStream.cs
- ColorAnimation.cs
- HttpPostedFileBase.cs
- ChangeTracker.cs
- XmlAnyElementAttributes.cs
- EditCommandColumn.cs
- ImageListUtils.cs
- KeyedCollection.cs
- ListBoxItem.cs
- WindowExtensionMethods.cs
- LogLogRecordEnumerator.cs
- XPathNode.cs
- ConnectionConsumerAttribute.cs
- httpstaticobjectscollection.cs
- SQLDateTime.cs
- ControlCachePolicy.cs
- XmlBufferReader.cs
- CharStorage.cs
- TypeUtils.cs
- XmlSiteMapProvider.cs
- MexHttpsBindingElement.cs
- DetailsViewInsertEventArgs.cs
- ResourceProperty.cs
- WSIdentityFaultException.cs
- EventWaitHandleSecurity.cs
- CommentEmitter.cs
- DebuggerAttributes.cs
- ProfileBuildProvider.cs
- XmlReaderDelegator.cs
- CatalogZone.cs
- WebPartChrome.cs