Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / PersonalizationStateInfo.cs / 1305376 / PersonalizationStateInfo.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Web.Util; [Serializable] 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.Web.Util; [Serializable] 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
- QueryContinueDragEvent.cs
- InkCanvasFeedbackAdorner.cs
- KnownBoxes.cs
- RightNameExpirationInfoPair.cs
- MatchAttribute.cs
- UnmanagedMemoryStreamWrapper.cs
- BindingNavigator.cs
- DispatcherExceptionEventArgs.cs
- DbUpdateCommandTree.cs
- CompositeDataBoundControl.cs
- ScopelessEnumAttribute.cs
- URL.cs
- LogEntryHeaderSerializer.cs
- _LoggingObject.cs
- FilteredDataSetHelper.cs
- GuidConverter.cs
- _NegoStream.cs
- GeometryHitTestParameters.cs
- JsonClassDataContract.cs
- Rfc2898DeriveBytes.cs
- TextElementCollection.cs
- List.cs
- ButtonBase.cs
- RijndaelCryptoServiceProvider.cs
- CurrentTimeZone.cs
- ProfileGroupSettingsCollection.cs
- ScrollEventArgs.cs
- BasicExpandProvider.cs
- WebServicesDescriptionAttribute.cs
- NeutralResourcesLanguageAttribute.cs
- HttpConfigurationSystem.cs
- XmlValueConverter.cs
- LineServices.cs
- TemplateModeChangedEventArgs.cs
- TypeUsageBuilder.cs
- MonthChangedEventArgs.cs
- NameValueFileSectionHandler.cs
- PathSegment.cs
- OdbcTransaction.cs
- WrappedReader.cs
- RuntimeConfigurationRecord.cs
- XsltArgumentList.cs
- Int32Rect.cs
- ActivationArguments.cs
- BlurEffect.cs
- VirtualPath.cs
- bidPrivateBase.cs
- ExpressionBindingCollection.cs
- FormatStringEditor.cs
- TypedAsyncResult.cs
- ContentElement.cs
- FrameworkContentElementAutomationPeer.cs
- BitmapSource.cs
- QueueTransferProtocol.cs
- PerspectiveCamera.cs
- CommandEventArgs.cs
- LineMetrics.cs
- TextTreeInsertElementUndoUnit.cs
- ProcessInputEventArgs.cs
- HelpEvent.cs
- MimeTypeMapper.cs
- MemberExpressionHelper.cs
- PropertyMetadata.cs
- SmtpNtlmAuthenticationModule.cs
- ContentElementAutomationPeer.cs
- RequestCacheEntry.cs
- ViewRendering.cs
- SizeConverter.cs
- hresults.cs
- WebPartTransformerAttribute.cs
- ColorConvertedBitmap.cs
- Crypto.cs
- SyntaxCheck.cs
- UrlUtility.cs
- BaseParser.cs
- ItemPager.cs
- MenuAdapter.cs
- NetworkCredential.cs
- CssStyleCollection.cs
- AssemblyHash.cs
- InlineCollection.cs
- PointCollectionConverter.cs
- PropertyGridCommands.cs
- MemoryMappedViewAccessor.cs
- XamlPointCollectionSerializer.cs
- FileDialog_Vista_Interop.cs
- Point3DKeyFrameCollection.cs
- AudioException.cs
- PolicyException.cs
- DataBindingList.cs
- CqlLexerHelpers.cs
- ListMarkerSourceInfo.cs
- CrossAppDomainChannel.cs
- AuthorizationRule.cs
- SchemaManager.cs
- MenuItemStyleCollection.cs
- ObjectQueryExecutionPlan.cs
- PluralizationServiceUtil.cs
- WindowsGraphics.cs
- SqlBuilder.cs