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
- ToolboxItemCollection.cs
- XmlMemberMapping.cs
- LambdaCompiler.Generated.cs
- ContentDefinition.cs
- FormViewRow.cs
- NumberEdit.cs
- XmlSchemaAttributeGroupRef.cs
- RijndaelManagedTransform.cs
- ServiceObjectContainer.cs
- EmptyEnumerable.cs
- GZipUtils.cs
- SafeNativeMethods.cs
- WebUtil.cs
- MenuItemAutomationPeer.cs
- TextRenderer.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- safelink.cs
- DoubleAnimationClockResource.cs
- SQLInt32.cs
- SatelliteContractVersionAttribute.cs
- CurrentChangingEventManager.cs
- UpdatePanelTrigger.cs
- MenuItemCollectionEditorDialog.cs
- XDeferredAxisSource.cs
- InputLanguageProfileNotifySink.cs
- GraphicsPath.cs
- DashStyle.cs
- ValidationSummaryDesigner.cs
- ConnectionsZone.cs
- ToolStripItemEventArgs.cs
- Literal.cs
- ParseChildrenAsPropertiesAttribute.cs
- CompilerError.cs
- DocumentsTrace.cs
- XhtmlBasicLiteralTextAdapter.cs
- SoapEnumAttribute.cs
- PagedDataSource.cs
- XmlDomTextWriter.cs
- DBSchemaTable.cs
- PageParser.cs
- CodeAccessSecurityEngine.cs
- IPPacketInformation.cs
- UpdatePanelControlTrigger.cs
- IntersectQueryOperator.cs
- DataBoundLiteralControl.cs
- InvokeProviderWrapper.cs
- AssemblyHash.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- ECDiffieHellmanCngPublicKey.cs
- Visitors.cs
- SystemIPGlobalStatistics.cs
- TextServicesHost.cs
- SerializationSectionGroup.cs
- IIS7UserPrincipal.cs
- RelationshipType.cs
- WebPartZoneBase.cs
- CodeLinePragma.cs
- cookieexception.cs
- XmlCDATASection.cs
- OracleDateTime.cs
- FragmentQuery.cs
- EmptyReadOnlyDictionaryInternal.cs
- FlowPanelDesigner.cs
- EpmSourceTree.cs
- DecoderExceptionFallback.cs
- TextRangeBase.cs
- ImmComposition.cs
- DrawListViewSubItemEventArgs.cs
- PipeStream.cs
- PointAnimationClockResource.cs
- EntityViewContainer.cs
- DesignerDataRelationship.cs
- SystemIPAddressInformation.cs
- CodeSnippetStatement.cs
- HttpCookieCollection.cs
- ExceptionValidationRule.cs
- SupportsEventValidationAttribute.cs
- ComponentDispatcher.cs
- WasAdminWrapper.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- StyleXamlParser.cs
- TabPage.cs
- QuotaExceededException.cs
- LineInfo.cs
- LinkArea.cs
- ToolStripProgressBar.cs
- ModuleBuilder.cs
- ConstraintStruct.cs
- ResourceManager.cs
- TextParagraphProperties.cs
- figurelength.cs
- TreeNodeBindingCollection.cs
- SiteMapDataSourceDesigner.cs
- FormViewDeletedEventArgs.cs
- PersonalizationState.cs
- UserPreferenceChangedEventArgs.cs
- BrowserPolicyValidator.cs
- SamlAuthorizationDecisionClaimResource.cs
- SqlRowUpdatingEvent.cs
- OleDbWrapper.cs