Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ControlIdConverter.cs
- StringWriter.cs
- NavigationExpr.cs
- SqlServices.cs
- DateTimeFormatInfo.cs
- DesignerEditorPartChrome.cs
- Barrier.cs
- AnnotationDocumentPaginator.cs
- ThemeDictionaryExtension.cs
- SecurityVerifiedMessage.cs
- SystemDiagnosticsSection.cs
- MethodSet.cs
- XmlSchemaImport.cs
- SaveFileDialogDesigner.cs
- FactoryId.cs
- XmlSchemaSimpleContent.cs
- ObjectDataSourceWizardForm.cs
- SpecialNameAttribute.cs
- DataGridViewCellValueEventArgs.cs
- CodePageEncoding.cs
- DictionaryBase.cs
- columnmapkeybuilder.cs
- JsonFormatReaderGenerator.cs
- MultipleViewProviderWrapper.cs
- CompilerParameters.cs
- ScrollEvent.cs
- RuntimeVariablesExpression.cs
- InstanceData.cs
- MetafileHeaderEmf.cs
- BitmapScalingModeValidation.cs
- ProfileService.cs
- EditorPart.cs
- ServicePoint.cs
- ChannelPool.cs
- InkCanvas.cs
- Soap12ProtocolImporter.cs
- ControllableStoryboardAction.cs
- WebProxyScriptElement.cs
- TransactionContextValidator.cs
- RowToParametersTransformer.cs
- TagMapCollection.cs
- TypeExtensionConverter.cs
- OleDbEnumerator.cs
- GuidTagList.cs
- SurrogateSelector.cs
- QilReference.cs
- DPCustomTypeDescriptor.cs
- KeyConverter.cs
- ToolStripRenderer.cs
- SqlBulkCopy.cs
- QilInvoke.cs
- XmlTextEncoder.cs
- SyndicationLink.cs
- RotateTransform3D.cs
- ApplicationBuildProvider.cs
- HuffmanTree.cs
- FormView.cs
- Compilation.cs
- SafeRightsManagementSessionHandle.cs
- ArgIterator.cs
- PageCatalogPart.cs
- CryptoStream.cs
- MimeXmlImporter.cs
- ReadWriteSpinLock.cs
- ProxyGenerator.cs
- TrackingStringDictionary.cs
- GlyphInfoList.cs
- SafeIUnknown.cs
- MultiView.cs
- RevocationPoint.cs
- FieldReference.cs
- CommandID.cs
- Control.cs
- ObjectContextServiceProvider.cs
- WinFormsSpinner.cs
- OrderedParallelQuery.cs
- NullableBoolConverter.cs
- AssemblySettingAttributes.cs
- CallbackValidatorAttribute.cs
- DBProviderConfigurationHandler.cs
- EqualityComparer.cs
- GenericEnumerator.cs
- XmlSiteMapProvider.cs
- MatrixCamera.cs
- SmtpCommands.cs
- OdbcStatementHandle.cs
- PolygonHotSpot.cs
- ProtocolImporter.cs
- TraceShell.cs
- ILGen.cs
- PageCopyCount.cs
- WindowAutomationPeer.cs
- CodeParameterDeclarationExpression.cs
- FixedPageAutomationPeer.cs
- ElapsedEventArgs.cs
- InputMethodStateChangeEventArgs.cs
- BamlVersionHeader.cs
- DataReaderContainer.cs
- DependencyObject.cs
- DataServiceContext.cs