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
- HttpContextServiceHost.cs
- VisualStates.cs
- MetadataItem.cs
- SqlDataSourceWizardForm.cs
- Identity.cs
- GroupItem.cs
- ResXResourceWriter.cs
- SqlCacheDependencyDatabase.cs
- SiteMapDataSource.cs
- EditorAttributeInfo.cs
- SerializationStore.cs
- TailPinnedEventArgs.cs
- SizeLimitedCache.cs
- WindowsGraphicsWrapper.cs
- GridViewRowCollection.cs
- ListViewGroup.cs
- GiveFeedbackEventArgs.cs
- Iis7Helper.cs
- DataGridViewCheckBoxCell.cs
- HttpProfileBase.cs
- ProfileParameter.cs
- SystemWebSectionGroup.cs
- InheritanceRules.cs
- PriorityBindingExpression.cs
- _PooledStream.cs
- SelectionProcessor.cs
- DecoderFallbackWithFailureFlag.cs
- XmlBinaryWriter.cs
- BindingExpressionBase.cs
- ProviderBase.cs
- Range.cs
- SingleStorage.cs
- NullExtension.cs
- X509ChainElement.cs
- SourceElementsCollection.cs
- HttpServerVarsCollection.cs
- CodeMemberField.cs
- CancellationState.cs
- SrgsGrammar.cs
- TreeNodeMouseHoverEvent.cs
- TreeNode.cs
- KeyPressEvent.cs
- _FtpControlStream.cs
- ConnectionManagementSection.cs
- DiagnosticsConfigurationHandler.cs
- WindowsEditBoxRange.cs
- TrustDriver.cs
- Matrix.cs
- PartitionerQueryOperator.cs
- WizardSideBarListControlItem.cs
- IntSecurity.cs
- PassportIdentity.cs
- DrawingContext.cs
- XmlNavigatorStack.cs
- WasHostedComPlusFactory.cs
- InternalBase.cs
- RunClient.cs
- XDRSchema.cs
- FontNamesConverter.cs
- CryptoStream.cs
- ImageUrlEditor.cs
- DispatcherFrame.cs
- XPathPatternBuilder.cs
- ResXBuildProvider.cs
- CapabilitiesPattern.cs
- URLAttribute.cs
- Preprocessor.cs
- MonthChangedEventArgs.cs
- BitmapScalingModeValidation.cs
- WindowsPen.cs
- InstallHelper.cs
- ArraySegment.cs
- ExpressionConverter.cs
- EmbeddedMailObject.cs
- ListDataBindEventArgs.cs
- FontCollection.cs
- SapiRecoContext.cs
- WeakRefEnumerator.cs
- ObjectPropertyMapping.cs
- ObjectStorage.cs
- EntityStoreSchemaFilterEntry.cs
- XmlSchemaComplexContent.cs
- BrowserCapabilitiesCompiler.cs
- Normalization.cs
- HttpListenerRequestTraceRecord.cs
- FacetValueContainer.cs
- ColorKeyFrameCollection.cs
- ImageDrawing.cs
- AttributeCollection.cs
- TextWriterEngine.cs
- EventMap.cs
- ContextQuery.cs
- QueryExpr.cs
- DataSourceHelper.cs
- UnauthorizedAccessException.cs
- LogStream.cs
- WindowsUpDown.cs
- DefaultEventAttribute.cs
- Collection.cs
- XamlWriter.cs