Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / WebParts / PersonalizationEntry.cs / 5 / 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
- AlternationConverter.cs
- SwitchElementsCollection.cs
- FixedBufferAttribute.cs
- CodeNamespaceImportCollection.cs
- ContextMenu.cs
- PagedDataSource.cs
- XmlElementList.cs
- RadioButton.cs
- DebugHandleTracker.cs
- InputLanguageProfileNotifySink.cs
- DataGridViewCellValidatingEventArgs.cs
- ConnectionPoint.cs
- RectangleConverter.cs
- ClientRolePrincipal.cs
- CodeEventReferenceExpression.cs
- FixedSOMFixedBlock.cs
- TreeChangeInfo.cs
- isolationinterop.cs
- SQLRoleProvider.cs
- DiagnosticTraceRecords.cs
- HexParser.cs
- DocumentOrderComparer.cs
- NonParentingControl.cs
- SamlDoNotCacheCondition.cs
- FactoryGenerator.cs
- HttpContext.cs
- ZipFileInfo.cs
- SmiSettersStream.cs
- HighContrastHelper.cs
- SoapMessage.cs
- XmlSchemaElement.cs
- IntSecurity.cs
- _emptywebproxy.cs
- HWStack.cs
- CompositeKey.cs
- IdentifierElement.cs
- MSAAEventDispatcher.cs
- WindowsIPAddress.cs
- SpeechUI.cs
- InternalPermissions.cs
- BitmapEffectDrawingContent.cs
- HttpRuntimeSection.cs
- EditingMode.cs
- X509ThumbprintKeyIdentifierClause.cs
- TrackingMemoryStreamFactory.cs
- CodeSubDirectory.cs
- ThreadStaticAttribute.cs
- HtmlControlAdapter.cs
- ClientCultureInfo.cs
- ProcessInfo.cs
- SpellCheck.cs
- EntityCommandExecutionException.cs
- LayoutTable.cs
- PerformanceCounterPermission.cs
- ProcessProtocolHandler.cs
- HorizontalAlignConverter.cs
- RoutedCommand.cs
- ConditionalAttribute.cs
- GeneratedCodeAttribute.cs
- SmtpLoginAuthenticationModule.cs
- PagesChangedEventArgs.cs
- ColorContext.cs
- NullReferenceException.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- SendOperation.cs
- XmlSignificantWhitespace.cs
- PropertyItem.cs
- DataGridColumnCollection.cs
- ResourceWriter.cs
- QilGeneratorEnv.cs
- ColumnClickEvent.cs
- Socket.cs
- CaseInsensitiveOrdinalStringComparer.cs
- EmbeddedObject.cs
- TextFindEngine.cs
- BezierSegment.cs
- Soap.cs
- CookieParameter.cs
- GeometryHitTestParameters.cs
- DecimalAnimationUsingKeyFrames.cs
- XmlSchemaExporter.cs
- EncodingTable.cs
- Mappings.cs
- SqlCommandBuilder.cs
- GeneralTransform.cs
- diagnosticsswitches.cs
- ArrayListCollectionBase.cs
- RegexStringValidatorAttribute.cs
- HttpRawResponse.cs
- CultureSpecificCharacterBufferRange.cs
- XmlSchemaAppInfo.cs
- OleDbDataAdapter.cs
- FolderBrowserDialog.cs
- TreeNodeCollectionEditor.cs
- HandledMouseEvent.cs
- ContextMenu.cs
- Maps.cs
- SymLanguageType.cs
- ToolStripContainerDesigner.cs
- MailMessage.cs