Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- _Events.cs
- ObjectDataSource.cs
- StringAnimationUsingKeyFrames.cs
- RepeatButton.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ExpandableObjectConverter.cs
- Win32Native.cs
- SoapClientMessage.cs
- RewritingValidator.cs
- InstanceDescriptor.cs
- ValidationError.cs
- ConfigurationManagerInternalFactory.cs
- Native.cs
- VectorCollectionValueSerializer.cs
- CodeNamespaceImportCollection.cs
- MessageSecurityOverTcp.cs
- StringInfo.cs
- ExtensionFile.cs
- ItemsControl.cs
- metadatamappinghashervisitor.cs
- CachedBitmap.cs
- DataFormats.cs
- ValidatingReaderNodeData.cs
- PropertyGridDesigner.cs
- HtmlLinkAdapter.cs
- PasswordPropertyTextAttribute.cs
- DynamicUpdateCommand.cs
- FacetDescriptionElement.cs
- ByteFacetDescriptionElement.cs
- x509store.cs
- FieldToken.cs
- XamlToRtfWriter.cs
- IntegrationExceptionEventArgs.cs
- DateTimeConstantAttribute.cs
- InputBinding.cs
- NetNamedPipeBindingElement.cs
- HostingPreferredMapPath.cs
- StateInitialization.cs
- UIElement3D.cs
- XmlQueryRuntime.cs
- ActiveXSite.cs
- CallId.cs
- UniqueEventHelper.cs
- NameTable.cs
- ClientBuildManagerCallback.cs
- ActivityDesigner.cs
- SetterBaseCollection.cs
- TraceHwndHost.cs
- ProviderConnectionPoint.cs
- Error.cs
- TableCell.cs
- ViewGenerator.cs
- AttributeQuery.cs
- XmlDataProvider.cs
- EventToken.cs
- ConfigurationStrings.cs
- SecurityElement.cs
- NamespaceMapping.cs
- ScrollItemPattern.cs
- SHA1CryptoServiceProvider.cs
- CommonDialog.cs
- WebRequestModulesSection.cs
- TagPrefixInfo.cs
- SourceChangedEventArgs.cs
- CheckBoxAutomationPeer.cs
- RectAnimationUsingKeyFrames.cs
- Volatile.cs
- GlyphInfoList.cs
- DependencyPropertyKind.cs
- ClientSettings.cs
- FatalException.cs
- UrlMappingsModule.cs
- Events.cs
- PrimitiveSchema.cs
- SharedPerformanceCounter.cs
- RoutedEvent.cs
- EntitySetDataBindingList.cs
- SqlDataSourceStatusEventArgs.cs
- DataSourceProvider.cs
- StringWriter.cs
- FlowLayoutPanel.cs
- GeneralTransformCollection.cs
- GeneralTransform.cs
- FileLogRecordHeader.cs
- TaskForm.cs
- Message.cs
- login.cs
- ExpressionPrefixAttribute.cs
- VisualTreeHelper.cs
- HwndSourceKeyboardInputSite.cs
- ReadWriteObjectLock.cs
- XmlTextReaderImpl.cs
- SelectionProcessor.cs
- GridToolTip.cs
- XamlPointCollectionSerializer.cs
- NopReturnReader.cs
- ApplicationActivator.cs
- WebPartConnectVerb.cs
- RootBrowserWindowAutomationPeer.cs
- LayoutUtils.cs