Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- BitmapEffectGroup.cs
- HttpHeaderCollection.cs
- DesignerActionUI.cs
- EdmMember.cs
- SecurityHelper.cs
- HtmlInputFile.cs
- MultiSelectRootGridEntry.cs
- IntSecurity.cs
- CompiledIdentityConstraint.cs
- CodeTypeReference.cs
- WorkflowDispatchContext.cs
- XmlSerializationWriter.cs
- CommonServiceBehaviorElement.cs
- _NegoStream.cs
- AnimationClock.cs
- DeflateInput.cs
- SetterBaseCollection.cs
- Trace.cs
- AdapterUtil.cs
- ColorMap.cs
- UnSafeCharBuffer.cs
- NativeMethods.cs
- XmlLinkedNode.cs
- TextBoxAutoCompleteSourceConverter.cs
- BevelBitmapEffect.cs
- BlockUIContainer.cs
- CodeAccessSecurityEngine.cs
- ParenthesizePropertyNameAttribute.cs
- DockPanel.cs
- ImmutableCommunicationTimeouts.cs
- WinFormsSpinner.cs
- LayoutSettings.cs
- UpdateCompiler.cs
- LoadedOrUnloadedOperation.cs
- CallbackHandler.cs
- InkPresenter.cs
- CaseInsensitiveOrdinalStringComparer.cs
- IntellisenseTextBox.cs
- HtmlEncodedRawTextWriter.cs
- NamedObjectList.cs
- HostingEnvironmentException.cs
- ScriptingWebServicesSectionGroup.cs
- KeyedCollection.cs
- FileDataSourceCache.cs
- CommandSet.cs
- SocketStream.cs
- XmlReflectionMember.cs
- DataStorage.cs
- Registry.cs
- ToolBar.cs
- XsdValidatingReader.cs
- ConfigurationConverterBase.cs
- InteropEnvironment.cs
- SoapInteropTypes.cs
- VisualStates.cs
- XmlSchemaSet.cs
- MetadataSerializer.cs
- BufferAllocator.cs
- FlowDocumentScrollViewer.cs
- safesecurityhelperavalon.cs
- CodeTypeMember.cs
- XmlNamespaceDeclarationsAttribute.cs
- XLinq.cs
- DBCommand.cs
- RSAPKCS1SignatureDeformatter.cs
- ValidateNames.cs
- XmlNamespaceManager.cs
- TraceHwndHost.cs
- DocumentSequence.cs
- XmlTextEncoder.cs
- BitmapEffectInput.cs
- Validator.cs
- ZoneIdentityPermission.cs
- ScalarConstant.cs
- DocumentPageView.cs
- LinearKeyFrames.cs
- ImageDesigner.cs
- TranslateTransform.cs
- CatalogUtil.cs
- DrawingContext.cs
- AssemblyBuilderData.cs
- RouteItem.cs
- GenericsInstances.cs
- DbConnectionPool.cs
- ModelTypeConverter.cs
- DescendantOverDescendantQuery.cs
- MultiPageTextView.cs
- ACL.cs
- TrustManagerPromptUI.cs
- WindowsServiceCredential.cs
- TransformCollection.cs
- GifBitmapEncoder.cs
- XsltSettings.cs
- PerformanceCounterPermissionEntryCollection.cs
- SchemaImporterExtension.cs
- ListItemsCollectionEditor.cs
- namescope.cs
- Mappings.cs
- ComponentSerializationService.cs
- FileDialogCustomPlace.cs