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
- PropertyFilterAttribute.cs
- DecoderNLS.cs
- EncryptedPackage.cs
- SelectionItemPattern.cs
- XamlWrappingReader.cs
- BamlTreeUpdater.cs
- QilScopedVisitor.cs
- IApplicationTrustManager.cs
- XmlSerializableWriter.cs
- SortDescriptionCollection.cs
- TranslateTransform.cs
- CompilationUnit.cs
- ManagementDateTime.cs
- Single.cs
- DataTemplateKey.cs
- NetworkInterface.cs
- ControlPropertyNameConverter.cs
- FolderLevelBuildProviderCollection.cs
- Operators.cs
- WebBrowserContainer.cs
- DrawItemEvent.cs
- TypeResolvingOptionsAttribute.cs
- CheckBoxRenderer.cs
- ValidationErrorEventArgs.cs
- VectorAnimationUsingKeyFrames.cs
- DecimalKeyFrameCollection.cs
- QueryHandler.cs
- HttpListenerContext.cs
- KeyBinding.cs
- AssemblyName.cs
- PropertyAccessVisitor.cs
- mansign.cs
- HttpWebRequest.cs
- DBNull.cs
- PolyLineSegment.cs
- Attributes.cs
- CodeAttachEventStatement.cs
- CodeLabeledStatement.cs
- SqlProvider.cs
- ContainerVisual.cs
- TabPage.cs
- SourceElementsCollection.cs
- TextFindEngine.cs
- DirectoryInfo.cs
- TraceSection.cs
- Certificate.cs
- SecurityAppliedMessage.cs
- AvTraceFormat.cs
- MessageTraceRecord.cs
- ProjectionQueryOptionExpression.cs
- SqlCacheDependencyDatabase.cs
- ExternalFile.cs
- DocumentXPathNavigator.cs
- ServiceDescriptionData.cs
- CodeAttributeDeclarationCollection.cs
- RegexRunner.cs
- SystemEvents.cs
- PropertyGridDesigner.cs
- WindowsFormsSectionHandler.cs
- HTMLTextWriter.cs
- SchemaObjectWriter.cs
- ScrollChangedEventArgs.cs
- WmlLabelAdapter.cs
- Size.cs
- ObjectPropertyMapping.cs
- QilInvokeEarlyBound.cs
- GregorianCalendar.cs
- FormsAuthenticationModule.cs
- EmptyTextWriter.cs
- PathParser.cs
- FontCacheUtil.cs
- RtfControls.cs
- X509SubjectKeyIdentifierClause.cs
- BitmapMetadataEnumerator.cs
- ButtonBaseDesigner.cs
- MetadataException.cs
- Buffer.cs
- EdmRelationshipRoleAttribute.cs
- CacheSection.cs
- ByteStack.cs
- BrowserCapabilitiesCompiler.cs
- GridViewUpdateEventArgs.cs
- CryptoKeySecurity.cs
- Block.cs
- InputScope.cs
- UriSection.cs
- DataControlFieldHeaderCell.cs
- WebPartHelpVerb.cs
- QilFactory.cs
- StringCollectionMarkupSerializer.cs
- TableLayoutStyle.cs
- PersonalizationDictionary.cs
- GenerateTemporaryTargetAssembly.cs
- FieldToken.cs
- Icon.cs
- ValueTypeFixupInfo.cs
- MenuAutoFormat.cs
- ServiceKnownTypeAttribute.cs
- RegexReplacement.cs
- NativeWrapper.cs