Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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; } } } } // 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. // //----------------------------------------------------------------------------- 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; } } } } // 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
- RequestCachePolicy.cs
- MasterPageBuildProvider.cs
- DropShadowBitmapEffect.cs
- HyperLinkDesigner.cs
- RemotingConfiguration.cs
- WinFormsSpinner.cs
- Permission.cs
- Matrix.cs
- DataGridViewComboBoxEditingControl.cs
- NegotiationTokenAuthenticatorStateCache.cs
- MimeMultiPart.cs
- SocketException.cs
- QueryOutputWriter.cs
- MemberDomainMap.cs
- AspCompat.cs
- PrintPageEvent.cs
- CodeTypeReferenceCollection.cs
- ContentTextAutomationPeer.cs
- ImageButton.cs
- CapabilitiesRule.cs
- FileVersionInfo.cs
- TreeNodeCollection.cs
- FontStyle.cs
- XsdBuildProvider.cs
- CollectionConverter.cs
- TypeListConverter.cs
- StructuredTypeEmitter.cs
- ConfigsHelper.cs
- PaperSource.cs
- safesecurityhelperavalon.cs
- CustomErrorsSection.cs
- MailHeaderInfo.cs
- DbConnectionHelper.cs
- Synchronization.cs
- SqlConnectionHelper.cs
- PerformanceCounter.cs
- AdRotator.cs
- ReversePositionQuery.cs
- WebReferenceCollection.cs
- TabControl.cs
- XmlAggregates.cs
- UIElementIsland.cs
- FontFamily.cs
- SessionStateItemCollection.cs
- ChildChangedEventArgs.cs
- ZipIORawDataFileBlock.cs
- RequestResizeEvent.cs
- XPathBinder.cs
- SqlConnectionString.cs
- Grid.cs
- ContainerTracking.cs
- ScrollEvent.cs
- DrawingContextDrawingContextWalker.cs
- ContentOperations.cs
- SpotLight.cs
- TextRunCache.cs
- ToolStripContainer.cs
- SelectionProcessor.cs
- WebPartConnectionsConfigureVerb.cs
- StreamGeometry.cs
- LoginCancelEventArgs.cs
- ProfilePropertySettings.cs
- FileUpload.cs
- CompressedStack.cs
- CodeDirectionExpression.cs
- ReflectTypeDescriptionProvider.cs
- DetailsViewUpdateEventArgs.cs
- securestring.cs
- MasterPage.cs
- ListViewInsertionMark.cs
- MemberNameValidator.cs
- FileEnumerator.cs
- DropSource.cs
- EventTrigger.cs
- AggregateNode.cs
- Events.cs
- ServiceBehaviorAttribute.cs
- TextEndOfParagraph.cs
- CodePropertyReferenceExpression.cs
- ConditionalAttribute.cs
- MetadataCache.cs
- DictionaryContent.cs
- RegistryConfigurationProvider.cs
- InfocardInteractiveChannelInitializer.cs
- TraceHandlerErrorFormatter.cs
- AutomationPatternInfo.cs
- PolyLineSegment.cs
- CopyAttributesAction.cs
- ReadContentAsBinaryHelper.cs
- StyleCollection.cs
- ResourceDefaultValueAttribute.cs
- RoutedEventConverter.cs
- ImageFormat.cs
- DataViewListener.cs
- MoveSizeWinEventHandler.cs
- XmlDataProvider.cs
- StorageSetMapping.cs
- FontFamily.cs
- MobileControl.cs
- QilInvokeEarlyBound.cs