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
- ProtocolsConfigurationHandler.cs
- CompilerTypeWithParams.cs
- CompositeDataBoundControl.cs
- LogicalTreeHelper.cs
- RequiredAttributeAttribute.cs
- DataGridViewCellConverter.cs
- Schema.cs
- CodeSnippetStatement.cs
- SecurityStateEncoder.cs
- EventLogTraceListener.cs
- NameTable.cs
- MediaContext.cs
- tooltip.cs
- SmtpLoginAuthenticationModule.cs
- DebugView.cs
- CompressEmulationStream.cs
- FileDialog_Vista_Interop.cs
- __ComObject.cs
- NavigatorInput.cs
- TypeRefElement.cs
- CryptoApi.cs
- SystemInfo.cs
- ServiceNameCollection.cs
- PassportAuthenticationEventArgs.cs
- TextSpan.cs
- ModifierKeysValueSerializer.cs
- Mappings.cs
- ColorMap.cs
- AppModelKnownContentFactory.cs
- UrlAuthFailedErrorFormatter.cs
- ASCIIEncoding.cs
- TransformerTypeCollection.cs
- SortDescriptionCollection.cs
- QueryValue.cs
- CrossContextChannel.cs
- MetadataArtifactLoaderFile.cs
- ObjectQueryProvider.cs
- SourceChangedEventArgs.cs
- FamilyMapCollection.cs
- ApplicationBuildProvider.cs
- ApplyHostConfigurationBehavior.cs
- CodeExpressionStatement.cs
- RemotingServices.cs
- DataGridViewSelectedColumnCollection.cs
- LocatorBase.cs
- SharedUtils.cs
- InputLanguageSource.cs
- RandomNumberGenerator.cs
- HttpStreamMessage.cs
- EntityConnection.cs
- WinCategoryAttribute.cs
- Win32Native.cs
- MediaTimeline.cs
- UTF7Encoding.cs
- SecurityPermission.cs
- StylusPoint.cs
- TdsParserStaticMethods.cs
- EntityRecordInfo.cs
- WebExceptionStatus.cs
- InstanceOwnerQueryResult.cs
- DesignerExtenders.cs
- Context.cs
- CroppedBitmap.cs
- SspiSafeHandles.cs
- _Win32.cs
- storagemappingitemcollection.viewdictionary.cs
- VirtualDirectoryMapping.cs
- ElementProxy.cs
- StrokeSerializer.cs
- ProtocolImporter.cs
- AuditLevel.cs
- ClipboardData.cs
- CodeSnippetTypeMember.cs
- DependencyObjectPropertyDescriptor.cs
- ConditionBrowserDialog.cs
- FigureParaClient.cs
- ThreadStateException.cs
- BooleanFunctions.cs
- CompilerWrapper.cs
- EntityClassGenerator.cs
- FormViewCommandEventArgs.cs
- FirewallWrapper.cs
- Line.cs
- NameObjectCollectionBase.cs
- Operator.cs
- ParserStreamGeometryContext.cs
- StructuredTypeEmitter.cs
- FontConverter.cs
- HttpApplicationFactory.cs
- RelationshipConverter.cs
- COMException.cs
- TextOptions.cs
- TreeNodeEventArgs.cs
- GreenMethods.cs
- CodeStatement.cs
- ResourceType.cs
- TextStore.cs
- WSDualHttpSecurityElement.cs
- XmlNamespaceMapping.cs
- Relationship.cs