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
- VoiceInfo.cs
- SqlConnectionFactory.cs
- CodeParameterDeclarationExpression.cs
- CryptoHelper.cs
- ArrayTypeMismatchException.cs
- Rules.cs
- BreakRecordTable.cs
- RpcCryptoRequest.cs
- SudsWriter.cs
- Grammar.cs
- _ListenerResponseStream.cs
- sqlnorm.cs
- EntityDataSourceState.cs
- ListViewUpdatedEventArgs.cs
- ParameterBuilder.cs
- CellParagraph.cs
- _LoggingObject.cs
- PropertyTabAttribute.cs
- TimeZone.cs
- WindowsIdentity.cs
- LinkDesigner.cs
- DefaultAssemblyResolver.cs
- ContextProperty.cs
- ScrollData.cs
- CustomAssemblyResolver.cs
- PaginationProgressEventArgs.cs
- NameValueSectionHandler.cs
- SoapConverter.cs
- Permission.cs
- BaseCollection.cs
- CodeAttachEventStatement.cs
- DeflateStream.cs
- LinqDataSourceStatusEventArgs.cs
- SqlReferenceCollection.cs
- DataGridCellsPanel.cs
- HyperLinkStyle.cs
- SecuritySessionServerSettings.cs
- RC2CryptoServiceProvider.cs
- Variant.cs
- WSIdentityFaultException.cs
- RuntimeWrappedException.cs
- EtwTrace.cs
- FrameworkTextComposition.cs
- XPathMultyIterator.cs
- DelegatingTypeDescriptionProvider.cs
- MultiSelector.cs
- HashHelpers.cs
- IArgumentProvider.cs
- GenericRootAutomationPeer.cs
- DocumentViewerBase.cs
- ExtendedProtectionPolicyTypeConverter.cs
- Thread.cs
- NamespaceQuery.cs
- FileChangesMonitor.cs
- ModifiableIteratorCollection.cs
- GridViewCommandEventArgs.cs
- TextBoxDesigner.cs
- DrawingImage.cs
- DbProviderSpecificTypePropertyAttribute.cs
- SequenceDesigner.cs
- TreeViewDesigner.cs
- LassoSelectionBehavior.cs
- SafeHandles.cs
- ResourceExpression.cs
- Blend.cs
- CqlLexer.cs
- SocketManager.cs
- GcHandle.cs
- QilLiteral.cs
- HwndAppCommandInputProvider.cs
- SqlRetyper.cs
- XmlArrayItemAttributes.cs
- SecondaryIndexDefinition.cs
- StringReader.cs
- Span.cs
- EntitySqlQueryState.cs
- XmlNamespaceManager.cs
- RegexBoyerMoore.cs
- WebControl.cs
- CapabilitiesRule.cs
- SessionState.cs
- InputBinding.cs
- TraceUtility.cs
- ToolstripProfessionalRenderer.cs
- XmlSchemaChoice.cs
- KernelTypeValidation.cs
- RangeBase.cs
- XmlSerializerAssemblyAttribute.cs
- xsdvalidator.cs
- SpellerInterop.cs
- DodSequenceMerge.cs
- MediaElementAutomationPeer.cs
- DoubleAnimationUsingPath.cs
- RepeaterItemCollection.cs
- bidPrivateBase.cs
- LocalBuilder.cs
- ApplicationFileParser.cs
- SystemResourceHost.cs
- ContainerParagraph.cs
- CodeEntryPointMethod.cs