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
- DataList.cs
- TabControlAutomationPeer.cs
- AuthenticationModuleElementCollection.cs
- XmlArrayAttribute.cs
- Events.cs
- CardSpacePolicyElement.cs
- TemplatePropertyEntry.cs
- DataServiceProcessingPipeline.cs
- CultureInfoConverter.cs
- UrlMappingsSection.cs
- SiteMapDataSourceView.cs
- DbCommandDefinition.cs
- MissingManifestResourceException.cs
- HttpRawResponse.cs
- ClientRuntimeConfig.cs
- RelatedView.cs
- FixedSchema.cs
- XmlMemberMapping.cs
- ListViewDesigner.cs
- ThemeDictionaryExtension.cs
- ECDiffieHellmanCng.cs
- PointHitTestParameters.cs
- EntityDataSourceSelectingEventArgs.cs
- SqlConnectionFactory.cs
- ModelTreeEnumerator.cs
- IssuanceLicense.cs
- CombinedGeometry.cs
- GeometryModel3D.cs
- CodeTypeParameter.cs
- PropertyHelper.cs
- TypeReference.cs
- ListViewTableCell.cs
- NullRuntimeConfig.cs
- StorageFunctionMapping.cs
- EmbeddedMailObject.cs
- WeakReference.cs
- XmlTextReaderImpl.cs
- CompoundFileStorageReference.cs
- RuleSetBrowserDialog.cs
- LinkButton.cs
- InstalledVoice.cs
- WaveHeader.cs
- DockPatternIdentifiers.cs
- DataGridViewDataErrorEventArgs.cs
- ContainerVisual.cs
- CrossAppDomainChannel.cs
- XsdDateTime.cs
- Win32.cs
- MessageQueuePermissionEntryCollection.cs
- CustomValidator.cs
- IDispatchConstantAttribute.cs
- XmlValidatingReader.cs
- SafeCoTaskMem.cs
- XmlSignatureManifest.cs
- PropertyStore.cs
- ConnectivityStatus.cs
- BevelBitmapEffect.cs
- SecurityPolicySection.cs
- HTMLTagNameToTypeMapper.cs
- StickyNote.cs
- HideDisabledControlAdapter.cs
- NullableIntMinMaxAggregationOperator.cs
- CircleHotSpot.cs
- WindowsServiceElement.cs
- Registry.cs
- DockPatternIdentifiers.cs
- CopyEncoder.cs
- MulticastDelegate.cs
- OdbcConnectionString.cs
- TextBoxLine.cs
- PagerSettings.cs
- WSSecurityTokenSerializer.cs
- Util.cs
- ComponentResourceKeyConverter.cs
- XamlSerializerUtil.cs
- TagPrefixCollection.cs
- UInt64.cs
- TrackingParticipant.cs
- RowType.cs
- TemplatePropertyEntry.cs
- LessThanOrEqual.cs
- RequestCache.cs
- HttpCookieCollection.cs
- FontFamilyValueSerializer.cs
- X509Certificate2.cs
- ScrollItemPattern.cs
- NativeActivityFaultContext.cs
- MemoryPressure.cs
- TextEffectCollection.cs
- SqlNodeAnnotations.cs
- IsolationInterop.cs
- ArgumentException.cs
- DocumentCollection.cs
- BrushMappingModeValidation.cs
- Rights.cs
- RadioButton.cs
- BorderSidesEditor.cs
- DiffuseMaterial.cs
- CachingHintValidation.cs
- HashAlgorithm.cs