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
- DefaultValidator.cs
- StyleBamlRecordReader.cs
- TextProviderWrapper.cs
- StronglyTypedResourceBuilder.cs
- HwndHostAutomationPeer.cs
- ClientTargetSection.cs
- WebPartVerbCollection.cs
- ConnectionsZoneAutoFormat.cs
- ComponentEvent.cs
- Buffer.cs
- CacheModeConverter.cs
- hresults.cs
- TouchEventArgs.cs
- FixedDSBuilder.cs
- Menu.cs
- CategoryAttribute.cs
- Attributes.cs
- SQLByteStorage.cs
- HwndSource.cs
- X509RecipientCertificateClientElement.cs
- WindowsComboBox.cs
- Thickness.cs
- ProbeDuplex11AsyncResult.cs
- OleDbConnectionFactory.cs
- TreeViewImageKeyConverter.cs
- SkinBuilder.cs
- GenerateHelper.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Array.cs
- WebPageTraceListener.cs
- Misc.cs
- EditorPartCollection.cs
- CheckBoxFlatAdapter.cs
- PageRequestManager.cs
- DropTarget.cs
- DeclaredTypeValidatorAttribute.cs
- AutoScrollHelper.cs
- DataBindingHandlerAttribute.cs
- TTSEngineTypes.cs
- ModifiableIteratorCollection.cs
- StaticSiteMapProvider.cs
- SHA1CryptoServiceProvider.cs
- ServerValidateEventArgs.cs
- MatrixValueSerializer.cs
- ClosureBinding.cs
- RuntimeHandles.cs
- RightsDocument.cs
- XmlArrayItemAttribute.cs
- ProxyWebPartManager.cs
- FileDetails.cs
- SpellerError.cs
- ListViewItem.cs
- FontFamily.cs
- PermissionListSet.cs
- Funcletizer.cs
- UInt16.cs
- SqlUtil.cs
- MachineSettingsSection.cs
- PackageStore.cs
- Rights.cs
- NumericUpDownAcceleration.cs
- ConditionValidator.cs
- XDeferredAxisSource.cs
- DocumentEventArgs.cs
- TextLineBreak.cs
- wgx_commands.cs
- MgmtConfigurationRecord.cs
- EDesignUtil.cs
- DrawingAttributes.cs
- DbTransaction.cs
- XmlSchemaSimpleType.cs
- Misc.cs
- HttpHandlersSection.cs
- WebPartRestoreVerb.cs
- DurableRuntimeValidator.cs
- SynchronizationLockException.cs
- GraphicsState.cs
- DragDropManager.cs
- OdbcDataReader.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- ThrowHelper.cs
- SqlDependencyListener.cs
- AnchorEditor.cs
- XmlBinaryWriterSession.cs
- DatatypeImplementation.cs
- Transform.cs
- DiscoveryProxy.cs
- XamlTreeBuilderBamlRecordWriter.cs
- ProfilePropertySettingsCollection.cs
- ExpressionPrefixAttribute.cs
- ProcessModelInfo.cs
- ObjectViewListener.cs
- SettingsProperty.cs
- OdbcHandle.cs
- CqlLexerHelpers.cs
- SqlTypesSchemaImporter.cs
- ServiceModelConfigurationSectionCollection.cs
- WorkflowInstanceExtensionManager.cs
- ToolStripSplitStackLayout.cs
- WMICapabilities.cs