Code:
/ FX-1434 / FX-1434 / 1.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
- RightNameExpirationInfoPair.cs
- WindowsSysHeader.cs
- UITypeEditor.cs
- IconEditor.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- CustomWebEventKey.cs
- DrawingGroupDrawingContext.cs
- ConfigurationFileMap.cs
- IgnoreFlushAndCloseStream.cs
- PathFigure.cs
- XmlNodeWriter.cs
- DataContract.cs
- ColorInterpolationModeValidation.cs
- HtmlInputReset.cs
- CompareValidator.cs
- CacheManager.cs
- TypeElementCollection.cs
- ConsoleCancelEventArgs.cs
- DependencyObjectValidator.cs
- InputScopeManager.cs
- XmlIlTypeHelper.cs
- ReceiveDesigner.xaml.cs
- ToolBar.cs
- ConstraintStruct.cs
- DiffuseMaterial.cs
- EncodingStreamWrapper.cs
- ErrorRuntimeConfig.cs
- SafeFileMapViewHandle.cs
- BreakRecordTable.cs
- ResourceAttributes.cs
- RenderCapability.cs
- ConnectionPointCookie.cs
- ExternalCalls.cs
- GlobalAllocSafeHandle.cs
- QueryCacheEntry.cs
- LoginView.cs
- FormViewDeletedEventArgs.cs
- Point3D.cs
- ListView.cs
- TypeUtils.cs
- FtpRequestCacheValidator.cs
- XmlWrappingReader.cs
- EdmToObjectNamespaceMap.cs
- ObjectDataSourceEventArgs.cs
- PrePostDescendentsWalker.cs
- NativeMethods.cs
- OdbcStatementHandle.cs
- VisualStyleTypesAndProperties.cs
- SortKey.cs
- SQLInt16.cs
- COM2PropertyDescriptor.cs
- OleDbConnectionFactory.cs
- UIElementPropertyUndoUnit.cs
- XPathNodeIterator.cs
- ComponentChangingEvent.cs
- SynchronizationContext.cs
- OdbcInfoMessageEvent.cs
- NavigationProperty.cs
- ObjectCloneHelper.cs
- SystemUnicastIPAddressInformation.cs
- FieldNameLookup.cs
- InfoCardBaseException.cs
- ConnectionConsumerAttribute.cs
- DataServiceEntityAttribute.cs
- Lazy.cs
- MouseGestureConverter.cs
- QilParameter.cs
- UiaCoreApi.cs
- MergeFailedEvent.cs
- Geometry3D.cs
- FocusWithinProperty.cs
- XmlDocumentFragment.cs
- FormViewPageEventArgs.cs
- TextOptionsInternal.cs
- Point.cs
- LinkUtilities.cs
- XmlFormatExtensionPointAttribute.cs
- WindowInteropHelper.cs
- ElementMarkupObject.cs
- SortAction.cs
- BinHexEncoder.cs
- XmlAnyElementAttribute.cs
- XamlPathDataSerializer.cs
- SQLSingleStorage.cs
- UndirectedGraph.cs
- Size.cs
- GridPattern.cs
- DbMetaDataColumnNames.cs
- FormsIdentity.cs
- GregorianCalendar.cs
- ISAPIRuntime.cs
- MemoryPressure.cs
- FigureParaClient.cs
- GridLengthConverter.cs
- LogReservationCollection.cs
- SpellerInterop.cs
- InfoCardUIAgent.cs
- WebPartHeaderCloseVerb.cs
- SoapInteropTypes.cs
- ConstraintConverter.cs