Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebParts / PersonalizationEntry.cs / 1 / 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; } } } } // 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; 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; } } } } // 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
- IndentedTextWriter.cs
- UseManagedPresentationElement.cs
- CngKey.cs
- XsltConvert.cs
- ResXFileRef.cs
- FocusManager.cs
- HtmlTableCell.cs
- DefaultSerializationProviderAttribute.cs
- AppDomainAttributes.cs
- DateTimeEditor.cs
- EventSinkHelperWriter.cs
- ServerProtocol.cs
- CustomErrorsSection.cs
- DragEventArgs.cs
- AppSettingsReader.cs
- FixedPosition.cs
- DataRelation.cs
- CodeConstructor.cs
- ReceiveErrorHandling.cs
- RenderingEventArgs.cs
- ProcessThreadCollection.cs
- NotifyIcon.cs
- CodePrimitiveExpression.cs
- StylusShape.cs
- InitializerFacet.cs
- XsltInput.cs
- ParserStack.cs
- URLEditor.cs
- NotFiniteNumberException.cs
- TreeViewHitTestInfo.cs
- HtmlShimManager.cs
- AdministrationHelpers.cs
- ReachVisualSerializerAsync.cs
- X509UI.cs
- ObservableDictionary.cs
- TreeView.cs
- SystemColors.cs
- Quaternion.cs
- XPathNavigatorReader.cs
- XmlNodeReader.cs
- DaylightTime.cs
- IPAddressCollection.cs
- MdImport.cs
- PolyQuadraticBezierSegment.cs
- CategoryEditor.cs
- XmlC14NWriter.cs
- LoggedException.cs
- WindowsSpinner.cs
- BinaryUtilClasses.cs
- CqlQuery.cs
- EncryptedReference.cs
- KeyTime.cs
- ConfigXmlReader.cs
- SQLInt32Storage.cs
- QilXmlReader.cs
- NativeStructs.cs
- TriState.cs
- LineBreakRecord.cs
- DeobfuscatingStream.cs
- ClosableStream.cs
- GenerateTemporaryTargetAssembly.cs
- TemplateControlParser.cs
- MultipleViewPattern.cs
- SqlDataSourceWizardForm.cs
- ProtocolsConfigurationHandler.cs
- Line.cs
- FontNamesConverter.cs
- WindowsListViewScroll.cs
- SkewTransform.cs
- NameValuePermission.cs
- EmbeddedMailObjectsCollection.cs
- DesignerGenericWebPart.cs
- NumberFormatInfo.cs
- HttpCachePolicyElement.cs
- URI.cs
- Stacktrace.cs
- TemplateInstanceAttribute.cs
- XhtmlBasicCommandAdapter.cs
- XmlNodeReader.cs
- Debug.cs
- BitmapData.cs
- DataGridItem.cs
- ServiceDescription.cs
- SoapServerMethod.cs
- Int64AnimationBase.cs
- SafeCryptoHandles.cs
- jithelpers.cs
- DictionarySurrogate.cs
- EmptyStringExpandableObjectConverter.cs
- WindowsTab.cs
- UIElementCollection.cs
- PackUriHelper.cs
- XmlSchemaCollection.cs
- BookmarkScopeHandle.cs
- DynamicValueConverter.cs
- DataObjectMethodAttribute.cs
- SqlProviderManifest.cs
- XmlNamespaceDeclarationsAttribute.cs
- MutexSecurity.cs
- DesignerTextViewAdapter.cs