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
- ToolboxItemCollection.cs
- SqlDataSourceSummaryPanel.cs
- XmlSchemaSimpleContent.cs
- SchemaObjectWriter.cs
- TextCompositionEventArgs.cs
- JsonServiceDocumentSerializer.cs
- UpdateTranslator.cs
- DbMetaDataColumnNames.cs
- FontDriver.cs
- TemplateBuilder.cs
- EnglishPluralizationService.cs
- SequentialOutput.cs
- Table.cs
- WorkerRequest.cs
- ProviderConnectionPointCollection.cs
- FixedPageAutomationPeer.cs
- EngineSiteSapi.cs
- HybridObjectCache.cs
- PropertyGridCommands.cs
- ListenerAdaptersInstallComponent.cs
- RightsManagementPermission.cs
- SingleObjectCollection.cs
- MissingManifestResourceException.cs
- BrowserCapabilitiesCompiler.cs
- ISAPIApplicationHost.cs
- ProcessThreadCollection.cs
- ObjectConverter.cs
- DynamicQueryStringParameter.cs
- SignatureHelper.cs
- SpellerError.cs
- ParagraphVisual.cs
- ContentValidator.cs
- EmptyEnumerator.cs
- BlurBitmapEffect.cs
- Button.cs
- ClientBuildManager.cs
- HtmlMobileTextWriter.cs
- CodeDelegateCreateExpression.cs
- TreeNodeBinding.cs
- Viewport2DVisual3D.cs
- Registry.cs
- ContextBase.cs
- AvTraceDetails.cs
- TextEndOfParagraph.cs
- oledbconnectionstring.cs
- LinqDataSourceHelper.cs
- wpf-etw.cs
- ExpandCollapseProviderWrapper.cs
- BridgeDataRecord.cs
- HttpHandlersSection.cs
- IndependentAnimationStorage.cs
- ChangeTracker.cs
- AnnotationAuthorChangedEventArgs.cs
- StringUtil.cs
- Trace.cs
- TextEditorContextMenu.cs
- ToolStripDropDown.cs
- UnsafeCollabNativeMethods.cs
- Transform3DGroup.cs
- XmlSchemaObjectCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- TraceData.cs
- IgnoreDeviceFilterElement.cs
- MetadataCollection.cs
- XmlElementAttribute.cs
- VectorCollectionValueSerializer.cs
- SqlDataSourceView.cs
- Rect.cs
- KeyNotFoundException.cs
- LogicalExpr.cs
- XmlSchemaAll.cs
- HtmlToClrEventProxy.cs
- FusionWrap.cs
- UrlPath.cs
- SoapIncludeAttribute.cs
- DropDownButton.cs
- WmlTextViewAdapter.cs
- VirtualPathProvider.cs
- InternalEnumValidator.cs
- TemplatePartAttribute.cs
- CalculatedColumn.cs
- InternalsVisibleToAttribute.cs
- WrappedReader.cs
- AsyncContentLoadedEventArgs.cs
- WindowsListViewGroup.cs
- DataGridViewCellValueEventArgs.cs
- MetadataSource.cs
- ConvertTextFrag.cs
- Cursors.cs
- NetworkInformationPermission.cs
- SchemaAttDef.cs
- CapabilitiesRule.cs
- SqlDataSourceCommandEventArgs.cs
- MessageSecurityOverTcpElement.cs
- linebase.cs
- WebControlAdapter.cs
- GlyphRunDrawing.cs
- DataGridCellEditEndingEventArgs.cs
- OdbcEnvironmentHandle.cs
- DaylightTime.cs