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
- ImageSourceConverter.cs
- IndexedWhereQueryOperator.cs
- SecurityUtils.cs
- CompModSwitches.cs
- SafeFileHandle.cs
- CodeThrowExceptionStatement.cs
- StringReader.cs
- Misc.cs
- DataGridViewLayoutData.cs
- QilLoop.cs
- MultiAsyncResult.cs
- HostProtectionException.cs
- HttpListenerRequest.cs
- RegexCode.cs
- InkPresenterAutomationPeer.cs
- StatusBarItem.cs
- DataSourceControlBuilder.cs
- TextElementEditingBehaviorAttribute.cs
- ExitEventArgs.cs
- InvalidComObjectException.cs
- ResourcesGenerator.cs
- NamedPermissionSet.cs
- CapabilitiesUse.cs
- ComponentCommands.cs
- WindowsRegion.cs
- Timer.cs
- PathHelper.cs
- BitmapEffectCollection.cs
- RoleService.cs
- EncryptedKey.cs
- EdmFunction.cs
- TrackingAnnotationCollection.cs
- Simplifier.cs
- LayoutEditorPart.cs
- Floater.cs
- PropertyChangedEventManager.cs
- WindowsButton.cs
- DBSqlParser.cs
- SingleAnimationBase.cs
- DelayedRegex.cs
- StylusPlugin.cs
- DbProviderFactory.cs
- DataGridColumnHeaderCollection.cs
- Enum.cs
- FastEncoder.cs
- ApplicationServiceManager.cs
- xsdvalidator.cs
- PerfCounterSection.cs
- MultiPropertyDescriptorGridEntry.cs
- WindowsListViewSubItem.cs
- FormViewUpdateEventArgs.cs
- WebPageTraceListener.cs
- SystemTcpConnection.cs
- FontCollection.cs
- LocalizationParserHooks.cs
- GZipDecoder.cs
- OverflowException.cs
- ProvidePropertyAttribute.cs
- MSG.cs
- ContainerParagraph.cs
- HtmlHead.cs
- EdmValidator.cs
- Quad.cs
- FamilyTypefaceCollection.cs
- UserControl.cs
- XmlReader.cs
- ClaimComparer.cs
- ResXFileRef.cs
- SafeMarshalContext.cs
- DataPagerCommandEventArgs.cs
- SqlException.cs
- WebContext.cs
- ForEachAction.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- ActivityDesigner.cs
- Tokenizer.cs
- Propagator.cs
- SynchronizationContext.cs
- SafeHandles.cs
- HttpConfigurationContext.cs
- EntryIndex.cs
- WindowsGraphics2.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- Module.cs
- ProcessManager.cs
- EnumMember.cs
- FilterQuery.cs
- Convert.cs
- UnsafeNativeMethods.cs
- DataSet.cs
- OdbcHandle.cs
- RelOps.cs
- DataGridRelationshipRow.cs
- XsltSettings.cs
- CultureSpecificStringDictionary.cs
- BitHelper.cs
- CreateUserWizardAutoFormat.cs
- IERequestCache.cs
- SecureConversationSecurityTokenParameters.cs
- TypeBuilderInstantiation.cs