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
- RSAOAEPKeyExchangeFormatter.cs
- ValidationRuleCollection.cs
- CodeCastExpression.cs
- Paragraph.cs
- RequiredAttributeAttribute.cs
- HttpListenerRequestUriBuilder.cs
- TextServicesDisplayAttributePropertyRanges.cs
- UnsafeNativeMethods.cs
- SecurityContext.cs
- XmlImplementation.cs
- GridViewRowPresenter.cs
- FieldMetadata.cs
- SpnEndpointIdentityExtension.cs
- RegexParser.cs
- CommandLibraryHelper.cs
- ToolStripContainer.cs
- SchemaSetCompiler.cs
- FormsAuthenticationConfiguration.cs
- ListSortDescription.cs
- TdsParameterSetter.cs
- SqlCacheDependencySection.cs
- LifetimeServices.cs
- ContextInformation.cs
- PolicyLevel.cs
- ButtonPopupAdapter.cs
- MessageSecurityProtocol.cs
- ContentIterators.cs
- NativeMethods.cs
- HandlerBase.cs
- OdbcCommandBuilder.cs
- WindowsServiceCredential.cs
- TrackingDataItem.cs
- XmlDataImplementation.cs
- SoapAttributeOverrides.cs
- WebPartConnectionsEventArgs.cs
- TextDecorationCollection.cs
- FacetDescription.cs
- FormClosedEvent.cs
- PagesChangedEventArgs.cs
- CallbackValidatorAttribute.cs
- PathFigureCollectionValueSerializer.cs
- SortFieldComparer.cs
- Visual3D.cs
- SqlCrossApplyToCrossJoin.cs
- DomainLiteralReader.cs
- Pair.cs
- MultipleViewProviderWrapper.cs
- CmsUtils.cs
- DomainConstraint.cs
- TcpClientChannel.cs
- AxDesigner.cs
- CacheSection.cs
- TextRange.cs
- DrawingAttributeSerializer.cs
- InfoCardBaseException.cs
- GridViewHeaderRowPresenter.cs
- StylusPointPropertyInfoDefaults.cs
- ResourcesGenerator.cs
- RectAnimationBase.cs
- GeneralTransform3DGroup.cs
- TabPage.cs
- DataGridViewRowPostPaintEventArgs.cs
- XmlHierarchicalEnumerable.cs
- Selection.cs
- SchemaMapping.cs
- TypeContext.cs
- WinFormsUtils.cs
- SizeChangedInfo.cs
- SettingsBase.cs
- GeneratedContractType.cs
- KeyInfo.cs
- DeflateEmulationStream.cs
- EnvelopedPkcs7.cs
- WebPartEditorApplyVerb.cs
- DataGridViewColumn.cs
- Point3DAnimation.cs
- DiagnosticTrace.cs
- OleCmdHelper.cs
- SchemaImporterExtension.cs
- DocumentXPathNavigator.cs
- RMEnrollmentPage1.cs
- Lookup.cs
- TextServicesDisplayAttribute.cs
- IncrementalHitTester.cs
- Vector3dCollection.cs
- SqlError.cs
- COM2AboutBoxPropertyDescriptor.cs
- FolderBrowserDialog.cs
- ToolStripLocationCancelEventArgs.cs
- AbstractExpressions.cs
- XmlILOptimizerVisitor.cs
- BitmapCacheBrush.cs
- WeakReferenceList.cs
- ConfigurationValidatorAttribute.cs
- ClientApiGenerator.cs
- TextDecoration.cs
- BindUriHelper.cs
- Select.cs
- MappingMetadataHelper.cs
- HtmlEmptyTagControlBuilder.cs