Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConfigurationValidatorAttribute.cs
- WmfPlaceableFileHeader.cs
- EventLogEntry.cs
- GeneratedView.cs
- StringAnimationUsingKeyFrames.cs
- AssemblyFilter.cs
- Pen.cs
- SQLMembershipProvider.cs
- ActivityScheduledQuery.cs
- AppDomainAttributes.cs
- CloudCollection.cs
- BitmapEffectDrawingContextState.cs
- StringFunctions.cs
- TemplateBamlRecordReader.cs
- SQLBoolean.cs
- AuthorizationRuleCollection.cs
- HwndMouseInputProvider.cs
- PersonalizationProvider.cs
- RemotingAttributes.cs
- OrderedDictionary.cs
- CodeEntryPointMethod.cs
- ButtonAutomationPeer.cs
- DrawingServices.cs
- ISAPIWorkerRequest.cs
- InputProcessorProfiles.cs
- DisableDpiAwarenessAttribute.cs
- TemplateControlCodeDomTreeGenerator.cs
- PageContentAsyncResult.cs
- dsa.cs
- VariableAction.cs
- EventSinkHelperWriter.cs
- WebServiceData.cs
- ActivityExecutor.cs
- ByteConverter.cs
- WebServiceEnumData.cs
- SerialStream.cs
- PolyLineSegment.cs
- RequestChannelBinder.cs
- ListControlBoundActionList.cs
- PreservationFileReader.cs
- DialogResultConverter.cs
- ImageDrawing.cs
- RecommendedAsConfigurableAttribute.cs
- TCPListener.cs
- BufferedStream.cs
- InstalledFontCollection.cs
- InitialServerConnectionReader.cs
- mda.cs
- CodeNamespace.cs
- Size3DValueSerializer.cs
- XmlSchemaChoice.cs
- SvcMapFileLoader.cs
- XmlSchemaAnnotated.cs
- HtmlButton.cs
- GB18030Encoding.cs
- LoadedOrUnloadedOperation.cs
- WorkflowEnvironment.cs
- TextParaLineResult.cs
- ViewStateException.cs
- FlowDocumentReaderAutomationPeer.cs
- CustomPopupPlacement.cs
- XsltConvert.cs
- Permission.cs
- Vector3DAnimation.cs
- FormsAuthenticationUser.cs
- StackBuilderSink.cs
- GPRECTF.cs
- ProviderCommandInfoUtils.cs
- StylusTip.cs
- QilLoop.cs
- DateTimePickerDesigner.cs
- UnionCqlBlock.cs
- FieldNameLookup.cs
- Trigger.cs
- IssuanceTokenProviderState.cs
- HandlerBase.cs
- BitmapPalettes.cs
- SessionStateSection.cs
- Object.cs
- HttpWriter.cs
- DataBinding.cs
- StorageComplexPropertyMapping.cs
- QueryContinueDragEvent.cs
- EmptyControlCollection.cs
- PlatformCulture.cs
- XmlChoiceIdentifierAttribute.cs
- DependencyPropertyChangedEventArgs.cs
- SocketInformation.cs
- CryptoStream.cs
- RootBrowserWindowAutomationPeer.cs
- TextTreeRootTextBlock.cs
- Int16.cs
- AncillaryOps.cs
- StatusBarDesigner.cs
- TrimSurroundingWhitespaceAttribute.cs
- SynchronizedDispatch.cs
- CompiledRegexRunnerFactory.cs
- SqlResolver.cs
- Function.cs
- CommonDialog.cs