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 / PersonalizationStateInfo.cs / 1 / PersonalizationStateInfo.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Security.Permissions; using System.Web.Util; [Serializable] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public abstract class PersonalizationStateInfo { private string _path; private DateTime _lastUpdatedDate; private int _size; // We only want our assembly to inherit this class, so make it internal internal PersonalizationStateInfo(string path, DateTime lastUpdatedDate, int size) { _path = StringUtil.CheckAndTrimString(path, "path"); PersonalizationProviderHelper.CheckNegativeInteger(size, "size"); _lastUpdatedDate = lastUpdatedDate.ToUniversalTime(); _size = size; } public string Path { get { return _path; } } public DateTime LastUpdatedDate { get { return _lastUpdatedDate.ToLocalTime(); } } public int Size { get { return _size; } } } } // 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; using System.Web.Util; [Serializable] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public abstract class PersonalizationStateInfo { private string _path; private DateTime _lastUpdatedDate; private int _size; // We only want our assembly to inherit this class, so make it internal internal PersonalizationStateInfo(string path, DateTime lastUpdatedDate, int size) { _path = StringUtil.CheckAndTrimString(path, "path"); PersonalizationProviderHelper.CheckNegativeInteger(size, "size"); _lastUpdatedDate = lastUpdatedDate.ToUniversalTime(); _size = size; } public string Path { get { return _path; } } public DateTime LastUpdatedDate { get { return _lastUpdatedDate.ToLocalTime(); } } public int Size { get { return _size; } } } } // 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
- Delegate.cs
- ClientRuntimeConfig.cs
- DelimitedListTraceListener.cs
- AgileSafeNativeMemoryHandle.cs
- SharedConnectionInfo.cs
- SafeArrayRankMismatchException.cs
- DeploymentSection.cs
- CombinedGeometry.cs
- AdornerPresentationContext.cs
- ListViewInsertedEventArgs.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ProvideValueServiceProvider.cs
- Int32AnimationUsingKeyFrames.cs
- SQLStringStorage.cs
- PlainXmlSerializer.cs
- ConsumerConnectionPoint.cs
- UInt16Converter.cs
- CompositeKey.cs
- CmsUtils.cs
- XmlAttributeOverrides.cs
- DateTimeFormat.cs
- Vector3DConverter.cs
- TableLayoutSettings.cs
- AssemblyAssociatedContentFileAttribute.cs
- ApplicationException.cs
- DoubleAnimation.cs
- HandleCollector.cs
- ComboBoxItem.cs
- PropertyItemInternal.cs
- RangeValidator.cs
- ClipboardData.cs
- ProgressChangedEventArgs.cs
- ScrollProviderWrapper.cs
- httpapplicationstate.cs
- ConditionedDesigner.cs
- TransformedBitmap.cs
- TabControl.cs
- NodeFunctions.cs
- PasswordBox.cs
- ScopelessEnumAttribute.cs
- MissingMethodException.cs
- ProcessingInstructionAction.cs
- TypedElement.cs
- DeferredElementTreeState.cs
- BitFlagsGenerator.cs
- CompensationHandlingFilter.cs
- TypeContext.cs
- ProgressBarBrushConverter.cs
- SystemException.cs
- TemplateApplicationHelper.cs
- LogicalExpr.cs
- ResourceProperty.cs
- ContainerUtilities.cs
- GreaterThanOrEqual.cs
- ThreadPool.cs
- hwndwrapper.cs
- UseAttributeSetsAction.cs
- HostExecutionContextManager.cs
- RichTextBoxConstants.cs
- ACL.cs
- MarshalByRefObject.cs
- SoapSchemaExporter.cs
- TempEnvironment.cs
- SiteMapNodeItem.cs
- SQLDoubleStorage.cs
- DBConnection.cs
- ThumbAutomationPeer.cs
- SystemUdpStatistics.cs
- XmlAttributes.cs
- Page.cs
- X509InitiatorCertificateServiceElement.cs
- MimePart.cs
- XPathArrayIterator.cs
- DbXmlEnabledProviderManifest.cs
- ExtensibleClassFactory.cs
- Window.cs
- SqlUnionizer.cs
- SmtpException.cs
- OleDbParameterCollection.cs
- EntityReference.cs
- TabControlAutomationPeer.cs
- PropertyGeneratedEventArgs.cs
- SqlProfileProvider.cs
- SmiMetaData.cs
- PropertyNames.cs
- TextParaLineResult.cs
- AnnotationComponentManager.cs
- QilTypeChecker.cs
- ValidationSummary.cs
- SspiNegotiationTokenProviderState.cs
- PasswordRecovery.cs
- ActionItem.cs
- InvariantComparer.cs
- Stopwatch.cs
- FloaterParagraph.cs
- StringConcat.cs
- OdbcConnectionPoolProviderInfo.cs
- GridViewDeleteEventArgs.cs
- FactoryGenerator.cs
- SqlRowUpdatingEvent.cs