Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AxParameterData.cs
- ObfuscationAttribute.cs
- WaitHandleCannotBeOpenedException.cs
- WebEventTraceProvider.cs
- ApplicationTrust.cs
- SQLStringStorage.cs
- Roles.cs
- Triplet.cs
- CodeIndexerExpression.cs
- PenThread.cs
- ConnectionPointConverter.cs
- TemplateEditingFrame.cs
- SubMenuStyleCollection.cs
- RedirectionProxy.cs
- InputMethodStateChangeEventArgs.cs
- DelegatingConfigHost.cs
- ZoneLinkButton.cs
- SafeFindHandle.cs
- WebPartDescriptionCollection.cs
- SymbolEqualComparer.cs
- DesignerTransaction.cs
- DesignerTextViewAdapter.cs
- FontStyleConverter.cs
- ExceptionTrace.cs
- DropShadowBitmapEffect.cs
- ICspAsymmetricAlgorithm.cs
- ConsumerConnectionPointCollection.cs
- PasswordBoxAutomationPeer.cs
- IndentTextWriter.cs
- WebBrowserPermission.cs
- ApplicationId.cs
- RenameRuleObjectDialog.cs
- WindowPattern.cs
- _NestedMultipleAsyncResult.cs
- PropertyValueUIItem.cs
- RemoteWebConfigurationHostStream.cs
- TreeNodeClickEventArgs.cs
- AdPostCacheSubstitution.cs
- GraphicsPath.cs
- AuthenticatingEventArgs.cs
- InputBinder.cs
- CommentAction.cs
- DBBindings.cs
- DataGridCellAutomationPeer.cs
- DataObjectMethodAttribute.cs
- KeyEvent.cs
- RegistryExceptionHelper.cs
- MergeFilterQuery.cs
- DoubleLinkList.cs
- DependencySource.cs
- FunctionImportMapping.cs
- Utils.cs
- CompressedStack.cs
- WorkflowOwnershipException.cs
- MessageHeaderT.cs
- XamlGridLengthSerializer.cs
- CodeParameterDeclarationExpressionCollection.cs
- TimeIntervalCollection.cs
- OleDbReferenceCollection.cs
- SrgsGrammar.cs
- SqlRowUpdatingEvent.cs
- WsdlWriter.cs
- EmbeddedObject.cs
- QilReplaceVisitor.cs
- MetabaseServerConfig.cs
- FileDetails.cs
- LinqDataSourceUpdateEventArgs.cs
- WasAdminWrapper.cs
- NullableLongSumAggregationOperator.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- SqlVisitor.cs
- RewritingProcessor.cs
- ResetableIterator.cs
- Stylesheet.cs
- SafeFileMapViewHandle.cs
- RandomDelayQueuedSendsAsyncResult.cs
- SafeLocalMemHandle.cs
- QilNode.cs
- EventLogPermissionEntry.cs
- ConsumerConnectionPointCollection.cs
- VectorValueSerializer.cs
- SqlCacheDependencyDatabase.cs
- ReceiveSecurityHeader.cs
- BitmapImage.cs
- CleanUpVirtualizedItemEventArgs.cs
- Attributes.cs
- LostFocusEventManager.cs
- KnownTypeDataContractResolver.cs
- TypeName.cs
- TdsParser.cs
- JulianCalendar.cs
- Type.cs
- ProgressBarRenderer.cs
- ViewBase.cs
- ExpandCollapsePattern.cs
- CTreeGenerator.cs
- FlowDocumentReader.cs
- FeatureSupport.cs
- Psha1DerivedKeyGenerator.cs
- OleDbStruct.cs