Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- MatrixTransform.cs
- FacetValueContainer.cs
- CollectionBase.cs
- LogicalCallContext.cs
- StrongName.cs
- PerformanceCountersElement.cs
- WebScriptEndpoint.cs
- Label.cs
- CodePageUtils.cs
- BasicHttpSecurity.cs
- BuildResult.cs
- EntryIndex.cs
- Tokenizer.cs
- CookielessData.cs
- ToolboxItem.cs
- FocusManager.cs
- HtmlElementErrorEventArgs.cs
- TouchDevice.cs
- LightweightCodeGenerator.cs
- DynamicValueConverter.cs
- Region.cs
- XmlAttributes.cs
- RoutingExtensionElement.cs
- XmlCollation.cs
- DropSource.cs
- StaticSiteMapProvider.cs
- DetailsViewPageEventArgs.cs
- XmlAttributeHolder.cs
- LayoutTableCell.cs
- XmlSerializationReader.cs
- MethodInfo.cs
- SQLInt16Storage.cs
- BlurBitmapEffect.cs
- PageCache.cs
- DragCompletedEventArgs.cs
- DLinqAssociationProvider.cs
- SequentialUshortCollection.cs
- PageFunction.cs
- RTTrackingProfile.cs
- NamespaceDecl.cs
- DependencySource.cs
- NullRuntimeConfig.cs
- PagesChangedEventArgs.cs
- Constraint.cs
- EmissiveMaterial.cs
- cookie.cs
- FtpWebRequest.cs
- TimeEnumHelper.cs
- ObjectSet.cs
- StateBag.cs
- RegionIterator.cs
- ImportFileRequest.cs
- DataBinding.cs
- XmlImplementation.cs
- PriorityQueue.cs
- PrimitiveDataContract.cs
- DataMemberListEditor.cs
- RootProfilePropertySettingsCollection.cs
- SystemSounds.cs
- TextProperties.cs
- EditorPartCollection.cs
- KnownBoxes.cs
- CommandField.cs
- ComPlusServiceLoader.cs
- DbSourceParameterCollection.cs
- MSG.cs
- ControlBuilder.cs
- AlternationConverter.cs
- SqlConnectionHelper.cs
- HttpCacheParams.cs
- MdiWindowListItemConverter.cs
- AtomServiceDocumentSerializer.cs
- Missing.cs
- OdbcErrorCollection.cs
- NativeBuffer.cs
- DbProviderFactory.cs
- PerformanceCounterPermissionEntry.cs
- ExpandoObject.cs
- RadioButtonFlatAdapter.cs
- DateTimeOffset.cs
- FormsAuthenticationTicket.cs
- CodeGen.cs
- EdmComplexPropertyAttribute.cs
- RangeBase.cs
- HwndAppCommandInputProvider.cs
- JsonFormatGeneratorStatics.cs
- CodeBlockBuilder.cs
- DataObjectPastingEventArgs.cs
- TextOutput.cs
- util.cs
- MouseButton.cs
- SkewTransform.cs
- BufferedGraphicsContext.cs
- UserControl.cs
- Quaternion.cs
- Geometry3D.cs
- EventDescriptorCollection.cs
- DataBindingCollection.cs
- ShaderEffect.cs
- SessionPageStatePersister.cs