Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / WebParts / PersonalizationEntry.cs / 5 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StoreItemCollection.cs
- Canvas.cs
- ListItemsCollectionEditor.cs
- XmlNamespaceDeclarationsAttribute.cs
- SmiEventSink_DeferedProcessing.cs
- EncoderReplacementFallback.cs
- OperationParameterInfo.cs
- ComponentResourceManager.cs
- SessionIDManager.cs
- UIElementPropertyUndoUnit.cs
- SystemColors.cs
- FrugalMap.cs
- GraphicsContext.cs
- SqlClientPermission.cs
- SqlLiftIndependentRowExpressions.cs
- Vertex.cs
- FileSystemWatcher.cs
- ConstantProjectedSlot.cs
- RegionInfo.cs
- GridViewCancelEditEventArgs.cs
- Missing.cs
- NativeCompoundFileAPIs.cs
- RequestContext.cs
- ResXDataNode.cs
- CacheDependency.cs
- COM2TypeInfoProcessor.cs
- CodeNamespace.cs
- SafeNativeMethodsOther.cs
- DesignerCategoryAttribute.cs
- URL.cs
- ToolStripPanelCell.cs
- WindowsToolbar.cs
- XmlName.cs
- XsltInput.cs
- EdmFunctionAttribute.cs
- TraceSwitch.cs
- HebrewCalendar.cs
- CreateUserErrorEventArgs.cs
- GridLengthConverter.cs
- DataControlPagerLinkButton.cs
- Convert.cs
- Root.cs
- UrlAuthorizationModule.cs
- MenuItem.cs
- DependencySource.cs
- DBDataPermissionAttribute.cs
- DataList.cs
- ImageMetadata.cs
- IPAddress.cs
- AutomationPattern.cs
- DataSourceControlBuilder.cs
- DocumentXmlWriter.cs
- WebResourceAttribute.cs
- SynchronizationScope.cs
- RunInstallerAttribute.cs
- HttpDebugHandler.cs
- CodeParameterDeclarationExpressionCollection.cs
- TrustSection.cs
- MatrixAnimationUsingPath.cs
- DesignerDataConnection.cs
- MasterPageCodeDomTreeGenerator.cs
- PersonalizationProviderCollection.cs
- KeyInfo.cs
- EntityTemplateFactory.cs
- StreamWriter.cs
- NetworkInformationPermission.cs
- nulltextcontainer.cs
- LinkedResourceCollection.cs
- WebConfigurationManager.cs
- DoubleStorage.cs
- DebuggerService.cs
- NavigationEventArgs.cs
- EventLogStatus.cs
- EntityContainerEmitter.cs
- CryptographicAttribute.cs
- ToolboxItemFilterAttribute.cs
- HwndSourceParameters.cs
- OperationSelectorBehavior.cs
- FormattedText.cs
- MediaScriptCommandRoutedEventArgs.cs
- ToolStripArrowRenderEventArgs.cs
- UnsignedPublishLicense.cs
- FixedPageProcessor.cs
- SqlBinder.cs
- WorkflowQueuingService.cs
- MSAAWinEventWrap.cs
- ScriptingRoleServiceSection.cs
- DriveInfo.cs
- DbDataAdapter.cs
- DesignerListAdapter.cs
- Axis.cs
- ContractHandle.cs
- FormParameter.cs
- DataFieldEditor.cs
- objectquery_tresulttype.cs
- WindowsToolbar.cs
- CompositeDataBoundControl.cs
- PrintDialog.cs
- XmlNamedNodeMap.cs
- HierarchicalDataSourceDesigner.cs