Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / PersonalizationEntry.cs / 1305376 / PersonalizationEntry.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; 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
- ExceptionRoutedEventArgs.cs
- WorkflowViewStateService.cs
- Attributes.cs
- ModuleBuilder.cs
- StateItem.cs
- StringDictionaryEditor.cs
- LayoutDump.cs
- ProfileService.cs
- TransactedBatchingElement.cs
- CallId.cs
- StateItem.cs
- ConfigXmlSignificantWhitespace.cs
- WSFederationHttpBindingCollectionElement.cs
- VisualStyleInformation.cs
- SubclassTypeValidatorAttribute.cs
- DiagnosticsConfigurationHandler.cs
- DateTimeValueSerializerContext.cs
- CompilationUnit.cs
- Content.cs
- PropertyMapper.cs
- QuotedPrintableStream.cs
- EllipticalNodeOperations.cs
- TopClause.cs
- DataExpression.cs
- ActionMessageFilter.cs
- Vector.cs
- ImageBrush.cs
- CryptographicAttribute.cs
- RangeValuePatternIdentifiers.cs
- AmbientLight.cs
- AttachmentCollection.cs
- CornerRadiusConverter.cs
- PropertyToken.cs
- BaseResourcesBuildProvider.cs
- XamlPointCollectionSerializer.cs
- TickBar.cs
- DataGridViewImageColumn.cs
- HttpAsyncResult.cs
- TripleDESCryptoServiceProvider.cs
- QueryContinueDragEventArgs.cs
- MailHeaderInfo.cs
- RemotingServices.cs
- ClusterRegistryConfigurationProvider.cs
- PageParserFilter.cs
- codemethodreferenceexpression.cs
- DynamicPhysicalDiscoSearcher.cs
- PreservationFileReader.cs
- WindowsUpDown.cs
- AssemblyAttributesGoHere.cs
- EncodingDataItem.cs
- ValidationHelper.cs
- CornerRadius.cs
- UniqueCodeIdentifierScope.cs
- ContextStaticAttribute.cs
- DateTime.cs
- ItemList.cs
- HandleCollector.cs
- RemoteWebConfigurationHostStream.cs
- WebBrowserEvent.cs
- ResourcesBuildProvider.cs
- DynamicQueryableWrapper.cs
- ProgressBar.cs
- RuntimeResourceSet.cs
- RegularExpressionValidator.cs
- RemoteCryptoSignHashRequest.cs
- DnsPermission.cs
- SqlDataSourceSelectingEventArgs.cs
- ModelPropertyDescriptor.cs
- AppliedDeviceFiltersDialog.cs
- ChangeTracker.cs
- ColumnWidthChangingEvent.cs
- AsymmetricKeyExchangeFormatter.cs
- SelectionProviderWrapper.cs
- TableParaClient.cs
- MediaScriptCommandRoutedEventArgs.cs
- Keyboard.cs
- PeerCollaboration.cs
- EntityViewGenerator.cs
- PolicyUtility.cs
- Timeline.cs
- ThicknessKeyFrameCollection.cs
- UntrustedRecipientException.cs
- Window.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ErrorsHelper.cs
- Nullable.cs
- InputMethodStateTypeInfo.cs
- CacheRequest.cs
- ComponentEditorForm.cs
- _emptywebproxy.cs
- SafeLocalMemHandle.cs
- ScriptingSectionGroup.cs
- DesignOnlyAttribute.cs
- Environment.cs
- IdentitySection.cs
- ActiveXContainer.cs
- DeferredRunTextReference.cs
- Object.cs
- AdapterDictionary.cs
- XmlSchemaAll.cs