Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / PersonalizationEntry.cs / 2 / PersonalizationEntry.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class PersonalizationEntry { private PersonalizationScope _scope; private object _value; private bool _isSensitive; public PersonalizationEntry(object value, PersonalizationScope scope) : this(value, scope, false) { } public PersonalizationEntry(object value, PersonalizationScope scope, bool isSensitive) { PersonalizationProviderHelper.CheckPersonalizationScope(scope); _value = value; _scope = scope; _isSensitive = isSensitive; } public PersonalizationScope Scope { get { return _scope; } set { if (value < PersonalizationScope.User || value > PersonalizationScope.Shared) { throw new ArgumentOutOfRangeException("value"); } _scope = value; } } public object Value { get { return _value; } set { _value = value; } } public bool IsSensitive { get { return _isSensitive; } set { _isSensitive = value; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TraceSwitch.cs
- HtmlImage.cs
- BaseResourcesBuildProvider.cs
- DataGridViewImageCell.cs
- BmpBitmapEncoder.cs
- SmtpReplyReaderFactory.cs
- CurrentChangingEventArgs.cs
- SynchronizationLockException.cs
- FSWPathEditor.cs
- ComponentCommands.cs
- TreeNodeEventArgs.cs
- IncrementalHitTester.cs
- SQLDecimal.cs
- ErrorProvider.cs
- SplineKeyFrames.cs
- OleDbParameterCollection.cs
- SByte.cs
- StaticDataManager.cs
- LogExtentCollection.cs
- DataGridLengthConverter.cs
- XmlWrappingReader.cs
- MessageHeaderDescriptionCollection.cs
- ContentPlaceHolder.cs
- BitVector32.cs
- XdrBuilder.cs
- milrender.cs
- PkcsUtils.cs
- DispatcherSynchronizationContext.cs
- DataGridCellItemAutomationPeer.cs
- HttpHandlerActionCollection.cs
- DataRowCollection.cs
- BinaryCommonClasses.cs
- ResolvedKeyFrameEntry.cs
- SoundPlayerAction.cs
- XsltInput.cs
- SelectionItemPattern.cs
- PagePropertiesChangingEventArgs.cs
- URIFormatException.cs
- ComIntegrationManifestGenerator.cs
- ProjectionPruner.cs
- CallbackValidator.cs
- BasicKeyConstraint.cs
- BrowserCapabilitiesFactory.cs
- ResolveNameEventArgs.cs
- Frame.cs
- ControlParameter.cs
- AsyncResult.cs
- IndexerNameAttribute.cs
- Config.cs
- Size3DValueSerializer.cs
- DataGridItemAutomationPeer.cs
- HttpModuleAction.cs
- PointCollectionConverter.cs
- UIElementParaClient.cs
- XmlMapping.cs
- ClientFormsIdentity.cs
- OracleEncoding.cs
- Page.cs
- OptimalTextSource.cs
- RangeValuePattern.cs
- Material.cs
- Material.cs
- ExeConfigurationFileMap.cs
- BindToObject.cs
- ObjectManager.cs
- EndpointFilterProvider.cs
- HtmlControlPersistable.cs
- DataSourceXmlAttributeAttribute.cs
- SqlExpander.cs
- PipelineModuleStepContainer.cs
- MasterPageParser.cs
- BaseCollection.cs
- TypeUtil.cs
- WebPartUserCapability.cs
- EndPoint.cs
- PasswordTextNavigator.cs
- TextEditorTyping.cs
- TableRow.cs
- SessionPageStatePersister.cs
- Compiler.cs
- Encoder.cs
- CorrelationManager.cs
- GridSplitter.cs
- DbDataAdapter.cs
- backend.cs
- PresentationTraceSources.cs
- DocumentViewerBase.cs
- UserMapPath.cs
- ChineseLunisolarCalendar.cs
- XmlDictionaryString.cs
- VerbConverter.cs
- DisplayNameAttribute.cs
- NativeMethods.cs
- NativeMethods.cs
- DesignerSerializerAttribute.cs
- Margins.cs
- DictionaryContent.cs
- ResXBuildProvider.cs
- IISMapPath.cs
- MarkupCompiler.cs