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
- RunClient.cs
- JsonUriDataContract.cs
- HwndSourceParameters.cs
- SplashScreenNativeMethods.cs
- DataGridViewButtonColumn.cs
- WindowsIdentity.cs
- JsonClassDataContract.cs
- DesignerSerializationVisibilityAttribute.cs
- ColorBuilder.cs
- TimeEnumHelper.cs
- DynamicFilter.cs
- DataGridViewColumnTypePicker.cs
- DrawingAttributeSerializer.cs
- SqlDelegatedTransaction.cs
- SerializerWriterEventHandlers.cs
- WebPartZoneBase.cs
- Message.cs
- RepeaterItem.cs
- WmlObjectListAdapter.cs
- Slider.cs
- QueueProcessor.cs
- PolicyLevel.cs
- VisualBrush.cs
- Point.cs
- Debug.cs
- PopupControlService.cs
- ObjectViewQueryResultData.cs
- DesignerTransactionCloseEvent.cs
- TreeViewImageGenerator.cs
- StylusPointCollection.cs
- IdnMapping.cs
- TreeViewBindingsEditorForm.cs
- SByte.cs
- TouchDevice.cs
- Pkcs7Signer.cs
- OleDbStruct.cs
- DataServiceQuery.cs
- SqlConnection.cs
- serverconfig.cs
- MenuBase.cs
- GridViewCommandEventArgs.cs
- ConstructorBuilder.cs
- LineSegment.cs
- ParseHttpDate.cs
- TreeViewEvent.cs
- JumpList.cs
- SqlMetaData.cs
- processwaithandle.cs
- Vars.cs
- CollectionContainer.cs
- DesignBinding.cs
- WMIInterop.cs
- ShaderRenderModeValidation.cs
- IIS7UserPrincipal.cs
- _UriTypeConverter.cs
- AsymmetricAlgorithm.cs
- MetadataPropertyAttribute.cs
- HttpHandlerActionCollection.cs
- WebBrowserPermission.cs
- CommonProperties.cs
- AtomServiceDocumentSerializer.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- HtmlInputImage.cs
- XNodeValidator.cs
- BrowserCapabilitiesFactory.cs
- DecimalAnimation.cs
- ClrProviderManifest.cs
- uribuilder.cs
- SqlClientWrapperSmiStream.cs
- ObjectDataSourceMethodEditor.cs
- ThreadExceptionEvent.cs
- LineMetrics.cs
- BaseParagraph.cs
- XPathPatternParser.cs
- PostBackTrigger.cs
- ScaleTransform.cs
- Label.cs
- TextEditorThreadLocalStore.cs
- MetabaseSettingsIis7.cs
- NavigationProgressEventArgs.cs
- TdsParameterSetter.cs
- RuntimeHandles.cs
- TextBlock.cs
- TextInfo.cs
- FormatterServicesNoSerializableCheck.cs
- FileDialogCustomPlacesCollection.cs
- ActivityBuilderHelper.cs
- DiscriminatorMap.cs
- WindowInteropHelper.cs
- InlineUIContainer.cs
- FontStyleConverter.cs
- GeometryModel3D.cs
- HotSpotCollection.cs
- ItemCollection.cs
- LineProperties.cs
- PtsCache.cs
- CorrelationTokenInvalidatedHandler.cs
- InputLanguageSource.cs
- IxmlLineInfo.cs
- SafeCloseHandleCritical.cs