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
- ParameterCollection.cs
- ServiceDesigner.cs
- InvalidDataException.cs
- Activation.cs
- ThousandthOfEmRealPoints.cs
- TabItem.cs
- AssociationType.cs
- UserControlParser.cs
- SafeNativeMethods.cs
- AdornerDecorator.cs
- FormsAuthentication.cs
- TextServicesPropertyRanges.cs
- PasswordBoxAutomationPeer.cs
- GradientBrush.cs
- HttpServerChannel.cs
- RoutingExtension.cs
- SmiEventSink_Default.cs
- DataRow.cs
- RefreshEventArgs.cs
- SeverityFilter.cs
- ScriptManager.cs
- TrackingProfileCache.cs
- InspectionWorker.cs
- MetabaseReader.cs
- SelectionHighlightInfo.cs
- StickyNoteAnnotations.cs
- IntellisenseTextBox.cs
- Rectangle.cs
- LogAppendAsyncResult.cs
- ToolCreatedEventArgs.cs
- TextSpanModifier.cs
- RuleInfoComparer.cs
- WindowsFormsSynchronizationContext.cs
- ImageBrush.cs
- PinnedBufferMemoryStream.cs
- DecoderFallbackWithFailureFlag.cs
- _WinHttpWebProxyDataBuilder.cs
- SqlDataReaderSmi.cs
- GacUtil.cs
- QueryCacheKey.cs
- EmptyControlCollection.cs
- QualifiedCellIdBoolean.cs
- SqlError.cs
- BrowserCapabilitiesCompiler.cs
- LinkUtilities.cs
- HwndStylusInputProvider.cs
- ProxyManager.cs
- TextTreeTextBlock.cs
- SqlDataSourceEnumerator.cs
- AgileSafeNativeMemoryHandle.cs
- ping.cs
- SecurityCriticalDataForSet.cs
- LabelDesigner.cs
- StateMachine.cs
- FixedSOMImage.cs
- DelegateSerializationHolder.cs
- WebPageTraceListener.cs
- FixedHyperLink.cs
- PathFigure.cs
- _ChunkParse.cs
- ListViewItemEventArgs.cs
- IISUnsafeMethods.cs
- ThemeDirectoryCompiler.cs
- Matrix3DValueSerializer.cs
- SecurityException.cs
- Brush.cs
- PolicyException.cs
- ServiceAppDomainAssociationProvider.cs
- UserInitiatedNavigationPermission.cs
- RegisteredDisposeScript.cs
- EntityPropertyMappingAttribute.cs
- SHA256.cs
- DatagridviewDisplayedBandsData.cs
- FileDialog_Vista.cs
- dbdatarecord.cs
- CompiledELinqQueryState.cs
- StorageConditionPropertyMapping.cs
- Confirm.cs
- DataErrorValidationRule.cs
- HealthMonitoringSection.cs
- ImageListStreamer.cs
- wgx_render.cs
- TraceHandlerErrorFormatter.cs
- UpdateManifestForBrowserApplication.cs
- IISUnsafeMethods.cs
- SqlGatherConsumedAliases.cs
- FragmentQuery.cs
- IndexedString.cs
- CodeSubDirectoriesCollection.cs
- SHA1Managed.cs
- XmlSignatureProperties.cs
- XmlSchemaComplexContentExtension.cs
- BitmapCacheBrush.cs
- ServiceMetadataBehavior.cs
- CodeNamespaceCollection.cs
- ReadOnlyCollection.cs
- Viewport2DVisual3D.cs
- StateMachineHelpers.cs
- EventLogEntryCollection.cs
- shaperfactoryquerycachekey.cs