Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- OwnerDrawPropertyBag.cs
- ExpandSegment.cs
- WindowInteractionStateTracker.cs
- DetailsViewCommandEventArgs.cs
- TrustDriver.cs
- WebPartEditorApplyVerb.cs
- DataSourceHelper.cs
- SystemTcpConnection.cs
- KnowledgeBase.cs
- ExeConfigurationFileMap.cs
- UserMapPath.cs
- ConfigXmlText.cs
- IPAddressCollection.cs
- ControlParameter.cs
- TextSpanModifier.cs
- ModelVisual3D.cs
- TagPrefixAttribute.cs
- DataStreams.cs
- ContainsRowNumberChecker.cs
- NotifyIcon.cs
- CubicEase.cs
- MatrixConverter.cs
- DataGridColumnHeadersPresenter.cs
- TextCollapsingProperties.cs
- DbParameterCollectionHelper.cs
- GetPageCompletedEventArgs.cs
- SingleConverter.cs
- OletxCommittableTransaction.cs
- IUnknownConstantAttribute.cs
- EntitySetBaseCollection.cs
- ListComponentEditorPage.cs
- ProxyWebPartConnectionCollection.cs
- Identity.cs
- ImplicitInputBrush.cs
- NonBatchDirectoryCompiler.cs
- CheckedListBox.cs
- PathGeometry.cs
- InputBinding.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- X509SecurityTokenProvider.cs
- ProxyHelper.cs
- LocalizationParserHooks.cs
- FileNotFoundException.cs
- SiteMapSection.cs
- RootDesignerSerializerAttribute.cs
- LayoutExceptionEventArgs.cs
- OracleCommandSet.cs
- WpfKnownMember.cs
- DataSourceXmlSerializationAttribute.cs
- MsmqIntegrationSecurity.cs
- compensatingcollection.cs
- ForeignConstraint.cs
- Native.cs
- DockingAttribute.cs
- isolationinterop.cs
- CodeDomComponentSerializationService.cs
- XmlValueConverter.cs
- CounterSampleCalculator.cs
- SelectionUIService.cs
- CmsInterop.cs
- Form.cs
- XmlBuffer.cs
- TextCompositionEventArgs.cs
- RepeaterCommandEventArgs.cs
- ListItemsCollectionEditor.cs
- GenericAuthenticationEventArgs.cs
- SpnegoTokenAuthenticator.cs
- RuntimeHelpers.cs
- SequenceNumber.cs
- ContextStack.cs
- RootAction.cs
- CuspData.cs
- GuidelineSet.cs
- BamlStream.cs
- WebRequestModulesSection.cs
- ProtocolProfile.cs
- InputScope.cs
- BinaryReader.cs
- PropertyIDSet.cs
- MetafileHeader.cs
- BitConverter.cs
- CLSCompliantAttribute.cs
- SQLInt16Storage.cs
- RowParagraph.cs
- ManagementInstaller.cs
- Int16KeyFrameCollection.cs
- PrinterUnitConvert.cs
- EnumMember.cs
- ItemsPanelTemplate.cs
- TileModeValidation.cs
- ModuleConfigurationInfo.cs
- WebPartTransformer.cs
- FloatUtil.cs
- DefaultValueMapping.cs
- ToolStripCustomTypeDescriptor.cs
- ExpressionBuilder.cs
- NullableFloatSumAggregationOperator.cs
- BinaryObjectWriter.cs
- ResourceDictionaryCollection.cs
- Parser.cs