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
- CriticalFinalizerObject.cs
- MatrixTransform3D.cs
- TransactionScopeDesigner.cs
- BulletChrome.cs
- FormViewUpdateEventArgs.cs
- ReplyAdapterChannelListener.cs
- ServiceObjectContainer.cs
- WebExceptionStatus.cs
- SessionStateItemCollection.cs
- ResponseStream.cs
- GeneralTransform3DGroup.cs
- ExpressionTextBox.xaml.cs
- CatalogPartChrome.cs
- WinFormsSecurity.cs
- RelationshipFixer.cs
- WmlLinkAdapter.cs
- DataRecord.cs
- ProvidePropertyAttribute.cs
- WindowsListViewGroup.cs
- ScrollChrome.cs
- BaseTemplateCodeDomTreeGenerator.cs
- MainMenu.cs
- DataSourceConverter.cs
- FormsAuthenticationConfiguration.cs
- IdentityHolder.cs
- ButtonBase.cs
- ZoneButton.cs
- NullableLongMinMaxAggregationOperator.cs
- WorkItem.cs
- DataTemplate.cs
- XmlSchemaValidator.cs
- EditingMode.cs
- ScaleTransform3D.cs
- UriExt.cs
- SoapFault.cs
- EventRoute.cs
- PublisherIdentityPermission.cs
- FlowLayoutPanel.cs
- LinkConverter.cs
- UndirectedGraph.cs
- HTMLTagNameToTypeMapper.cs
- FileCodeGroup.cs
- SqlCacheDependency.cs
- FrameworkContentElement.cs
- SendingRequestEventArgs.cs
- AffineTransform3D.cs
- Timer.cs
- WebPartActionVerb.cs
- StorageComplexPropertyMapping.cs
- BufferedGraphicsManager.cs
- SqlReferenceCollection.cs
- DbQueryCommandTree.cs
- FrameworkObject.cs
- Vector3DAnimation.cs
- CatalogPartChrome.cs
- DataRowView.cs
- TextEditorSelection.cs
- BackgroundWorker.cs
- SqlError.cs
- AsyncCompletedEventArgs.cs
- XmlSchemaAny.cs
- XmlSchemaInclude.cs
- COM2IDispatchConverter.cs
- PrintDialog.cs
- OverlappedAsyncResult.cs
- WorkflowRuntimeServiceElement.cs
- FixedSOMImage.cs
- RemoteWebConfigurationHostServer.cs
- TypeCodeDomSerializer.cs
- XPathNodeIterator.cs
- SettingsPropertyNotFoundException.cs
- LicFileLicenseProvider.cs
- SoapSchemaExporter.cs
- SchemaElementLookUpTable.cs
- ProviderConnectionPointCollection.cs
- ReflectionPermission.cs
- SqlOuterApplyReducer.cs
- RemoveStoryboard.cs
- GridViewRowPresenterBase.cs
- StoreItemCollection.cs
- RemoveStoryboard.cs
- CheckBox.cs
- coordinator.cs
- _ScatterGatherBuffers.cs
- WorkflowMarkupSerializationManager.cs
- PaintValueEventArgs.cs
- ControllableStoryboardAction.cs
- DataGridrowEditEndingEventArgs.cs
- Int32Storage.cs
- PropertiesTab.cs
- OleDbInfoMessageEvent.cs
- HttpListenerRequestUriBuilder.cs
- SmtpMail.cs
- GlyphingCache.cs
- FontResourceCache.cs
- DataGridTableCollection.cs
- SqlLiftWhereClauses.cs
- ObfuscateAssemblyAttribute.cs
- TraceContextRecord.cs
- DataTableMapping.cs