Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebParts / PersonalizationEntry.cs / 2 / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InternalSafeNativeMethods.cs
- TextTreeRootTextBlock.cs
- PkcsUtils.cs
- BitmapCache.cs
- TextBoxView.cs
- CatalogPart.cs
- HttpResponse.cs
- CompModSwitches.cs
- ApplicationProxyInternal.cs
- IfJoinedCondition.cs
- EntityContainerEntitySetDefiningQuery.cs
- ObjectManager.cs
- NamespaceQuery.cs
- ShaderEffect.cs
- EdmConstants.cs
- TextTreeRootNode.cs
- ParseChildrenAsPropertiesAttribute.cs
- CachedFontFace.cs
- NavigationPropertyEmitter.cs
- WorkflowViewManager.cs
- SerTrace.cs
- ParseHttpDate.cs
- UpdateCommandGenerator.cs
- PropertyPathWorker.cs
- BulletChrome.cs
- MetricEntry.cs
- CheckBoxList.cs
- DoubleConverter.cs
- DateTimeOffsetStorage.cs
- ResourcesBuildProvider.cs
- NetworkInterface.cs
- IChannel.cs
- ShellProvider.cs
- DataObjectMethodAttribute.cs
- HijriCalendar.cs
- ListBoxAutomationPeer.cs
- DrawingBrush.cs
- DesignerVerbCollection.cs
- RegexWorker.cs
- MsmqAppDomainProtocolHandler.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- WindowCollection.cs
- ExpressionWriter.cs
- WebColorConverter.cs
- TextMarkerSource.cs
- DocumentViewerAutomationPeer.cs
- RoutedEventValueSerializer.cs
- XmlSchemaGroup.cs
- CreatingCookieEventArgs.cs
- PrinterSettings.cs
- WebPartConnectionCollection.cs
- unsafenativemethodsother.cs
- UnsafeNativeMethods.cs
- SizeValueSerializer.cs
- HashAlgorithm.cs
- RegisteredExpandoAttribute.cs
- ExpressionHelper.cs
- EventArgs.cs
- PropertyManager.cs
- ConnectionInterfaceCollection.cs
- DataGridViewCellMouseEventArgs.cs
- XmlReaderDelegator.cs
- SqlDataSourceCommandEventArgs.cs
- dtdvalidator.cs
- DesignerTextWriter.cs
- LingerOption.cs
- FileVersion.cs
- TableRowsCollectionEditor.cs
- User.cs
- SmtpFailedRecipientsException.cs
- CssClassPropertyAttribute.cs
- WindowHideOrCloseTracker.cs
- SchemaEntity.cs
- CompareInfo.cs
- XmlNamespaceManager.cs
- XmlSchemaGroup.cs
- FullTextLine.cs
- ISO2022Encoding.cs
- ProjectionNode.cs
- RawStylusInputCustomData.cs
- ApplicationInfo.cs
- PersonalizationState.cs
- CallContext.cs
- XmlQualifiedName.cs
- IntSecurity.cs
- GlyphRunDrawing.cs
- ReadOnlyCollection.cs
- ObjectDataSourceEventArgs.cs
- BamlLocalizableResource.cs
- LabelDesigner.cs
- HelpKeywordAttribute.cs
- columnmapkeybuilder.cs
- ColumnClickEvent.cs
- TraceUtility.cs
- ObjectStateFormatter.cs
- Comparer.cs
- ipaddressinformationcollection.cs
- QuotedPrintableStream.cs
- RtfFormatStack.cs
- ArcSegment.cs