Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebParts / PersonalizationEntry.cs / 1 / 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
- BitmapSourceSafeMILHandle.cs
- HierarchicalDataSourceConverter.cs
- HMACSHA384.cs
- DataSourceSelectArguments.cs
- DataTableMapping.cs
- ObjectDataSourceDisposingEventArgs.cs
- ComboBoxAutomationPeer.cs
- ClientTargetSection.cs
- ContentDisposition.cs
- _AutoWebProxyScriptHelper.cs
- FrameworkEventSource.cs
- DefaultAssemblyResolver.cs
- DataGridViewSelectedColumnCollection.cs
- HtmlAnchor.cs
- PropertyItemInternal.cs
- EntityReference.cs
- InfoCardSymmetricAlgorithm.cs
- Property.cs
- DeviceContext.cs
- BitVector32.cs
- AsymmetricSecurityBindingElement.cs
- EUCJPEncoding.cs
- BinaryFormatterSinks.cs
- MailBnfHelper.cs
- TableLayout.cs
- AuthenticationSection.cs
- DataGridViewColumnStateChangedEventArgs.cs
- InkPresenter.cs
- FileDialog_Vista.cs
- Profiler.cs
- ExtensibleClassFactory.cs
- QueueProcessor.cs
- KeyValueSerializer.cs
- messageonlyhwndwrapper.cs
- NameScopePropertyAttribute.cs
- AppearanceEditorPart.cs
- FixUp.cs
- ServiceProviders.cs
- PropertyGeneratedEventArgs.cs
- TimeoutValidationAttribute.cs
- RoleGroupCollectionEditor.cs
- LinkTarget.cs
- SaveFileDialog.cs
- Button.cs
- SqlErrorCollection.cs
- DataGridViewLinkColumn.cs
- SoapMessage.cs
- QueryMath.cs
- NameNode.cs
- LayoutTable.cs
- ToolStrip.cs
- UnhandledExceptionEventArgs.cs
- KnownIds.cs
- ContractUtils.cs
- SqlDependencyUtils.cs
- PingOptions.cs
- ShapeTypeface.cs
- EnumValAlphaComparer.cs
- NetPeerTcpBindingCollectionElement.cs
- CursorConverter.cs
- SeekStoryboard.cs
- NavigationHelper.cs
- XslAst.cs
- TraceHelpers.cs
- SynchronizingStream.cs
- SqlInternalConnectionSmi.cs
- Wizard.cs
- PermissionListSet.cs
- DataGridViewRowPostPaintEventArgs.cs
- CompiledQueryCacheKey.cs
- VerticalAlignConverter.cs
- CustomErrorCollection.cs
- PartialCachingAttribute.cs
- GridViewCancelEditEventArgs.cs
- StylusButton.cs
- XmlDigitalSignatureProcessor.cs
- MatchAttribute.cs
- ListView.cs
- DirtyTextRange.cs
- WpfWebRequestHelper.cs
- DataGridViewComboBoxColumnDesigner.cs
- DataViewListener.cs
- BasePropertyDescriptor.cs
- DataGridViewAutoSizeModeEventArgs.cs
- VisualTreeHelper.cs
- IdentifierCollection.cs
- StylusButtonCollection.cs
- DataColumnCollection.cs
- HtmlShim.cs
- NumberEdit.cs
- MatrixAnimationUsingKeyFrames.cs
- DynamicPhysicalDiscoSearcher.cs
- FacetDescriptionElement.cs
- BinHexDecoder.cs
- PrimitiveType.cs
- DirectoryNotFoundException.cs
- CodeGenHelper.cs
- MsdtcClusterUtils.cs
- ImmComposition.cs
- XmlSiteMapProvider.cs