Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Types.cs
- WebPartAddingEventArgs.cs
- FormatControl.cs
- SoapSchemaMember.cs
- RenderDataDrawingContext.cs
- CommandEventArgs.cs
- HitTestFilterBehavior.cs
- SettingsSavedEventArgs.cs
- PackagePart.cs
- TypeNameHelper.cs
- CardSpaceShim.cs
- SelectManyQueryOperator.cs
- TimelineClockCollection.cs
- ConnectionStringsExpressionBuilder.cs
- Calendar.cs
- XmlEncoding.cs
- ToolStripDropDownClosingEventArgs.cs
- VisualStyleTypesAndProperties.cs
- StorageModelBuildProvider.cs
- WindowsStartMenu.cs
- XmlSchemaSubstitutionGroup.cs
- PackageDigitalSignatureManager.cs
- ColorBlend.cs
- LinkButton.cs
- FileRegion.cs
- DashStyle.cs
- Int32CollectionConverter.cs
- InfoCardService.cs
- _RequestCacheProtocol.cs
- SessionState.cs
- XamlDebuggerXmlReader.cs
- EncryptedType.cs
- ListDictionary.cs
- RequiredArgumentAttribute.cs
- TemplatePropertyEntry.cs
- ZipFileInfoCollection.cs
- ScriptResourceInfo.cs
- KeySplineConverter.cs
- AdPostCacheSubstitution.cs
- DataStreamFromComStream.cs
- XmlDownloadManager.cs
- CompiledRegexRunner.cs
- KeyNotFoundException.cs
- DbParameterCollectionHelper.cs
- CommandConverter.cs
- UrlMappingsModule.cs
- GridViewSelectEventArgs.cs
- WindowsSecurityTokenAuthenticator.cs
- DoubleLink.cs
- GeneralTransform3D.cs
- Int32Collection.cs
- _Connection.cs
- TypefaceMap.cs
- DragEventArgs.cs
- DataRecordInfo.cs
- XComponentModel.cs
- AutomationPatternInfo.cs
- OneOfConst.cs
- SqlConnection.cs
- UserNamePasswordValidator.cs
- NonVisualControlAttribute.cs
- MouseWheelEventArgs.cs
- RelationshipDetailsCollection.cs
- connectionpool.cs
- BinaryMessageEncodingBindingElement.cs
- StorageRoot.cs
- XmlSerializableReader.cs
- PageEventArgs.cs
- MonthChangedEventArgs.cs
- _SslSessionsCache.cs
- RectangleHotSpot.cs
- SqlDataReaderSmi.cs
- ObjectItemNoOpAssemblyLoader.cs
- LocalIdKeyIdentifierClause.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- Types.cs
- PenThreadPool.cs
- SerializationSectionGroup.cs
- NativeMethods.cs
- Int32AnimationBase.cs
- DataGridViewSortCompareEventArgs.cs
- XmlSchemaAnyAttribute.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- CodeSnippetExpression.cs
- CollectionViewProxy.cs
- DataSourceXmlClassAttribute.cs
- EventRoute.cs
- UxThemeWrapper.cs
- AppSettingsSection.cs
- InputScopeNameConverter.cs
- QuadraticBezierSegment.cs
- LinqTreeNodeEvaluator.cs
- SessionEndingEventArgs.cs
- UrlAuthorizationModule.cs
- Lookup.cs
- SwitchElementsCollection.cs
- EventMappingSettings.cs
- ClassImporter.cs
- controlskin.cs
- NetCodeGroup.cs