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
- Visual3D.cs
- FlowDecision.cs
- ServiceHostFactory.cs
- DataControlPagerLinkButton.cs
- CharacterString.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- MultiByteCodec.cs
- TypeUsage.cs
- DateTimeConverter.cs
- DataControlImageButton.cs
- PropertyInfoSet.cs
- XmlDataSourceView.cs
- SecurityDocument.cs
- RouteItem.cs
- ItemList.cs
- _FtpDataStream.cs
- SrgsOneOf.cs
- XmlSerializerNamespaces.cs
- RijndaelManagedTransform.cs
- Mappings.cs
- LinkButton.cs
- EditorZoneDesigner.cs
- COM2IDispatchConverter.cs
- AspNetSynchronizationContext.cs
- SoapExtensionReflector.cs
- SafeMarshalContext.cs
- NameSpaceExtractor.cs
- HtmlForm.cs
- Vector3D.cs
- SplayTreeNode.cs
- SqlRewriteScalarSubqueries.cs
- MemberDescriptor.cs
- XmlSchemaImporter.cs
- AttributeTable.cs
- LinkConverter.cs
- SignatureDescription.cs
- DependencyPropertyKey.cs
- AsynchronousChannelMergeEnumerator.cs
- SamlSubjectStatement.cs
- HotSpotCollection.cs
- ScriptResourceInfo.cs
- HttpListener.cs
- TextEditorSpelling.cs
- ContainerUtilities.cs
- GridLengthConverter.cs
- EntityDataSourceStatementEditorForm.cs
- EmbeddedMailObjectsCollection.cs
- SymLanguageType.cs
- RankException.cs
- CommandValueSerializer.cs
- _ProxyChain.cs
- WpfSharedXamlSchemaContext.cs
- ProcessModule.cs
- PathFigureCollectionValueSerializer.cs
- Package.cs
- SoapFormatterSinks.cs
- Composition.cs
- FastEncoder.cs
- Documentation.cs
- InputLanguageEventArgs.cs
- ClassValidator.cs
- DSGeneratorProblem.cs
- LinqDataSourceStatusEventArgs.cs
- Camera.cs
- TextTreeFixupNode.cs
- TriggerBase.cs
- _NetRes.cs
- SkewTransform.cs
- GatewayDefinition.cs
- XmlSequenceWriter.cs
- NamedObject.cs
- MissingSatelliteAssemblyException.cs
- CharEntityEncoderFallback.cs
- FixedTextView.cs
- HtmlHead.cs
- AppDomainFactory.cs
- TypeExtensionConverter.cs
- DesignerActionList.cs
- PropertySet.cs
- TransactionContextValidator.cs
- OrderedHashRepartitionStream.cs
- OrderToken.cs
- CapabilitiesAssignment.cs
- XmlException.cs
- sqlinternaltransaction.cs
- DBDataPermission.cs
- TrackPointCollection.cs
- ProxyFragment.cs
- DataServiceRequestOfT.cs
- XamlTypeMapper.cs
- Unit.cs
- EdgeModeValidation.cs
- HttpRequestWrapper.cs
- GiveFeedbackEventArgs.cs
- TypefaceCollection.cs
- RowCache.cs
- Visitor.cs
- NullRuntimeConfig.cs
- ToolboxItem.cs
- PrintingPermissionAttribute.cs