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
- ScriptServiceAttribute.cs
- FieldNameLookup.cs
- ConsumerConnectionPoint.cs
- WebConfigurationHostFileChange.cs
- DataObjectAttribute.cs
- WebPartAuthorizationEventArgs.cs
- MethodAccessException.cs
- DnsEndPoint.cs
- CurrencyWrapper.cs
- ProvidersHelper.cs
- CapabilitiesPattern.cs
- DeviceFiltersSection.cs
- ResourcePart.cs
- BinaryObjectInfo.cs
- XmlNotation.cs
- ButtonBase.cs
- CollectionContainer.cs
- Utils.cs
- TabItemAutomationPeer.cs
- _NegoState.cs
- MultipleViewProviderWrapper.cs
- SecurityMode.cs
- ExtractCollection.cs
- DesignerWebPartChrome.cs
- DesigntimeLicenseContext.cs
- WebPartDescriptionCollection.cs
- DataDocumentXPathNavigator.cs
- XmlSchemaCollection.cs
- PenThread.cs
- DataViewSetting.cs
- SqlConnectionFactory.cs
- XamlPoint3DCollectionSerializer.cs
- safex509handles.cs
- SymLanguageVendor.cs
- XmlIlTypeHelper.cs
- SystemMulticastIPAddressInformation.cs
- RelationshipType.cs
- AddInAttribute.cs
- StringCollectionMarkupSerializer.cs
- Hex.cs
- HtmlInputHidden.cs
- BitmapEffectInputConnector.cs
- EventWaitHandleSecurity.cs
- FastPropertyAccessor.cs
- GroupItem.cs
- DataGridRowClipboardEventArgs.cs
- DateTimeFormat.cs
- MobileResource.cs
- MessageDecoder.cs
- WindowsGraphicsWrapper.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Literal.cs
- SqlCacheDependencyDatabaseCollection.cs
- BrowserCapabilitiesCompiler.cs
- TraceEventCache.cs
- GacUtil.cs
- SqlInternalConnectionTds.cs
- OleDbConnectionInternal.cs
- AnchoredBlock.cs
- ExternalFile.cs
- CollectionConverter.cs
- FormsAuthenticationUser.cs
- ProviderConnectionPoint.cs
- EntityDataSourceSelectingEventArgs.cs
- EnvironmentPermission.cs
- StylusOverProperty.cs
- ReadOnlyAttribute.cs
- DataServiceQueryOfT.cs
- DynamicResourceExtension.cs
- ValuePattern.cs
- oledbconnectionstring.cs
- _CacheStreams.cs
- AttachInfo.cs
- LogExtentCollection.cs
- Panel.cs
- HtmlInputButton.cs
- Command.cs
- ClientSponsor.cs
- DrawToolTipEventArgs.cs
- DataServiceResponse.cs
- UIElement3D.cs
- SecurityContext.cs
- ConditionCollection.cs
- MSAAWinEventWrap.cs
- TreeNodeCollection.cs
- Int32CAMarshaler.cs
- DataSourceSelectArguments.cs
- ResourceManager.cs
- XmlSchemaAnyAttribute.cs
- WebPartHelpVerb.cs
- FederatedMessageSecurityOverHttp.cs
- TimeoutValidationAttribute.cs
- CompiledQueryCacheEntry.cs
- XmlNodeChangedEventArgs.cs
- NumberFunctions.cs
- TimeManager.cs
- TimeSpanSecondsConverter.cs
- ObjectList.cs
- GroupBox.cs
- WSIdentityFaultException.cs