Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ThemeDictionaryExtension.cs
- FtpWebResponse.cs
- MenuStrip.cs
- Processor.cs
- HWStack.cs
- Column.cs
- FrameAutomationPeer.cs
- DbProviderFactory.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- BitmapEffectInput.cs
- ProviderCommandInfoUtils.cs
- SelectQueryOperator.cs
- DefaultValueTypeConverter.cs
- sqlser.cs
- XPathScanner.cs
- MonthCalendar.cs
- TreeNodeEventArgs.cs
- RecipientInfo.cs
- ItemsControl.cs
- SafeEventLogWriteHandle.cs
- FieldDescriptor.cs
- CacheModeConverter.cs
- ToolTipAutomationPeer.cs
- ColorConvertedBitmapExtension.cs
- NativeMethods.cs
- NeutralResourcesLanguageAttribute.cs
- OutKeywords.cs
- Stream.cs
- PointCollection.cs
- TdsParameterSetter.cs
- WebScriptMetadataFormatter.cs
- SRef.cs
- HtmlEmptyTagControlBuilder.cs
- ListViewSelectEventArgs.cs
- HtmlElementErrorEventArgs.cs
- UIElementParaClient.cs
- BaseCodePageEncoding.cs
- AtomServiceDocumentSerializer.cs
- JumpTask.cs
- PageMediaSize.cs
- DataSourceCache.cs
- RenderTargetBitmap.cs
- TempEnvironment.cs
- Membership.cs
- XpsSerializationException.cs
- FragmentNavigationEventArgs.cs
- ClockGroup.cs
- Size.cs
- ProfileGroupSettings.cs
- ServiceDocumentFormatter.cs
- CriticalExceptions.cs
- PassportAuthenticationEventArgs.cs
- EntityDataSourceViewSchema.cs
- RuleInfoComparer.cs
- Base64Stream.cs
- TableChangeProcessor.cs
- XdrBuilder.cs
- AsyncStreamReader.cs
- _SecureChannel.cs
- ImpersonationContext.cs
- ContentDisposition.cs
- KeyValueSerializer.cs
- ConstructorExpr.cs
- ToolStripItem.cs
- KeyTimeConverter.cs
- SwitchElementsCollection.cs
- RoleGroup.cs
- DirectoryInfo.cs
- WorkflowQueueInfo.cs
- FixedSOMPageConstructor.cs
- ToolStripItemImageRenderEventArgs.cs
- NamespaceDecl.cs
- FixedSOMFixedBlock.cs
- connectionpool.cs
- ToReply.cs
- LayoutSettings.cs
- WindowsBrush.cs
- ellipse.cs
- ComponentSerializationService.cs
- WindowsIdentity.cs
- CodeDefaultValueExpression.cs
- TypeToken.cs
- ImageListUtils.cs
- BitmapEffectState.cs
- x509utils.cs
- SubpageParaClient.cs
- AssemblyBuilder.cs
- ByteAnimation.cs
- MulticastIPAddressInformationCollection.cs
- TypeBrowser.xaml.cs
- EdmEntityTypeAttribute.cs
- StateManagedCollection.cs
- HttpContext.cs
- DataRow.cs
- TypedColumnHandler.cs
- ToolStripPanelRow.cs
- Comparer.cs
- HttpCookiesSection.cs
- ControlIdConverter.cs
- FontDialog.cs