Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / PersonalizationEntry.cs / 1305376 / PersonalizationEntry.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; 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. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Vector.cs
- Drawing.cs
- OperationAbortedException.cs
- ErrorWrapper.cs
- SelectionRangeConverter.cs
- JournalEntryListConverter.cs
- RegisteredExpandoAttribute.cs
- SoapFault.cs
- RelationshipSet.cs
- RijndaelManagedTransform.cs
- QilDataSource.cs
- TracingConnection.cs
- ClickablePoint.cs
- WindowPatternIdentifiers.cs
- SoundPlayerAction.cs
- TextTreeTextBlock.cs
- TimeSpanParse.cs
- ToolStripSeparator.cs
- ObjectParameter.cs
- TaskFileService.cs
- AmbientValueAttribute.cs
- ComplexTypeEmitter.cs
- MessageFilterTable.cs
- SessionIDManager.cs
- ScriptServiceAttribute.cs
- FtpCachePolicyElement.cs
- DesignerHierarchicalDataSourceView.cs
- AdPostCacheSubstitution.cs
- GridViewItemAutomationPeer.cs
- AmbientValueAttribute.cs
- SplineKeyFrames.cs
- AuthenticationConfig.cs
- ImageSource.cs
- NavigationService.cs
- dsa.cs
- EventListener.cs
- UiaCoreProviderApi.cs
- PerfCounterSection.cs
- CachedBitmap.cs
- XmlNavigatorFilter.cs
- CoreSwitches.cs
- TextBoxAutoCompleteSourceConverter.cs
- UserControl.cs
- FlatButtonAppearance.cs
- SQLInt16Storage.cs
- EdmSchemaAttribute.cs
- BitStack.cs
- IxmlLineInfo.cs
- COM2ColorConverter.cs
- ModuleElement.cs
- HttpResponseHeader.cs
- PerformanceCounterLib.cs
- PageCache.cs
- StylusTip.cs
- ClearCollection.cs
- EmptyEnumerator.cs
- RelationshipWrapper.cs
- ResourceDictionaryCollection.cs
- ResourceAttributes.cs
- PseudoWebRequest.cs
- TypefaceCollection.cs
- BoolExpression.cs
- TreeNodeSelectionProcessor.cs
- CompilerInfo.cs
- ToolStripContainerActionList.cs
- DelegatingConfigHost.cs
- NavigationHelper.cs
- TreeViewImageIndexConverter.cs
- XmlCountingReader.cs
- DataBinder.cs
- HyperLinkColumn.cs
- CharacterHit.cs
- SemanticBasicElement.cs
- RegexCapture.cs
- ContainerSelectorActiveEvent.cs
- SourceInterpreter.cs
- MethodToken.cs
- _emptywebproxy.cs
- AutomationElementCollection.cs
- EntityDesignerBuildProvider.cs
- WebReferencesBuildProvider.cs
- EmissiveMaterial.cs
- UnsafeNativeMethods.cs
- Win32.cs
- DependencyPropertyConverter.cs
- ErrorWrapper.cs
- BamlLocalizer.cs
- FunctionParameter.cs
- MeasurementDCInfo.cs
- SerializationAttributes.cs
- ChildDocumentBlock.cs
- GridLengthConverter.cs
- DetailsViewDeleteEventArgs.cs
- DataGridCellEditEndingEventArgs.cs
- AggregateNode.cs
- MailWebEventProvider.cs
- CodeArgumentReferenceExpression.cs
- PagesSection.cs
- ClientFormsIdentity.cs
- lengthconverter.cs