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
- TimeSpanMinutesConverter.cs
- ToolTipService.cs
- MimePart.cs
- InstallerTypeAttribute.cs
- PassportAuthenticationModule.cs
- ConnectionManagementSection.cs
- MultiSelectRootGridEntry.cs
- UIInitializationException.cs
- ZipIOExtraField.cs
- SerializationException.cs
- StylusDownEventArgs.cs
- PassportIdentity.cs
- MatcherBuilder.cs
- DetailsViewRowCollection.cs
- NavigationPropertySingletonExpression.cs
- XmlKeywords.cs
- SoapClientMessage.cs
- BrowserTree.cs
- PageSettings.cs
- ConfigurationLockCollection.cs
- MetadataArtifactLoaderCompositeFile.cs
- ViewStateModeByIdAttribute.cs
- SamlAuthenticationStatement.cs
- InstancePersistenceException.cs
- HandlerMappingMemo.cs
- FastPropertyAccessor.cs
- XamlBrushSerializer.cs
- SortQuery.cs
- ConditionalWeakTable.cs
- ToolStripDesignerAvailabilityAttribute.cs
- SByte.cs
- WebPartConnectVerb.cs
- DelegatingTypeDescriptionProvider.cs
- ResourceIDHelper.cs
- ContractMethodParameterInfo.cs
- CompiledXpathExpr.cs
- MimeMultiPart.cs
- dataprotectionpermissionattribute.cs
- CanExecuteRoutedEventArgs.cs
- MtomMessageEncodingElement.cs
- InplaceBitmapMetadataWriter.cs
- ToolStripDropDownButton.cs
- DetectEofStream.cs
- Sentence.cs
- HwndSourceKeyboardInputSite.cs
- CompModSwitches.cs
- CodeAccessPermission.cs
- IPCCacheManager.cs
- TypeConverterAttribute.cs
- InvalidFilterCriteriaException.cs
- SchemaImporterExtensionsSection.cs
- ObjectItemLoadingSessionData.cs
- _ListenerAsyncResult.cs
- GenericTextProperties.cs
- ClientUriBehavior.cs
- CancellationScope.cs
- AnnotationComponentChooser.cs
- PersistenceProviderBehavior.cs
- ThreadStartException.cs
- LongValidator.cs
- UrlAuthorizationModule.cs
- IconConverter.cs
- DispatcherHooks.cs
- BindingBase.cs
- WebCategoryAttribute.cs
- DefaultMemberAttribute.cs
- SessionStateUtil.cs
- FastEncoderStatics.cs
- FormViewDesigner.cs
- HeaderCollection.cs
- DurationConverter.cs
- WorkflowMarkupSerializationException.cs
- PersonalizationState.cs
- ResourceReferenceKeyNotFoundException.cs
- AsyncOperationManager.cs
- safesecurityhelperavalon.cs
- ForwardPositionQuery.cs
- SoapSchemaImporter.cs
- BindValidator.cs
- InstanceValue.cs
- SuppressMergeCheckAttribute.cs
- KerberosSecurityTokenParameters.cs
- ServiceBehaviorAttribute.cs
- LogicalMethodInfo.cs
- EncryptedPackage.cs
- SharedPerformanceCounter.cs
- RootBrowserWindowAutomationPeer.cs
- AppDomainUnloadedException.cs
- TextBreakpoint.cs
- ReadOnlyHierarchicalDataSourceView.cs
- AstTree.cs
- AuthenticationModuleElementCollection.cs
- DataGridViewHitTestInfo.cs
- ConnectionPoolManager.cs
- DocumentCollection.cs
- ImageDesigner.cs
- _Connection.cs
- LayoutTableCell.cs
- Memoizer.cs
- PresentationAppDomainManager.cs