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 / 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
- TypeConverterHelper.cs
- PolyLineSegment.cs
- OleDbException.cs
- ViewStateModeByIdAttribute.cs
- DbConnectionInternal.cs
- TypeExtensionConverter.cs
- StringAnimationUsingKeyFrames.cs
- MenuItemAutomationPeer.cs
- NavigationPropertyEmitter.cs
- Visitors.cs
- TransportChannelFactory.cs
- BufferedReadStream.cs
- CardSpacePolicyElement.cs
- NoResizeSelectionBorderGlyph.cs
- HttpRawResponse.cs
- DeviceContext.cs
- Decorator.cs
- FileUtil.cs
- FilterRepeater.cs
- NavigationProgressEventArgs.cs
- baseshape.cs
- NullableFloatAverageAggregationOperator.cs
- ObjectListDataBindEventArgs.cs
- GZipDecoder.cs
- AssemblyHash.cs
- InputLanguageEventArgs.cs
- ScrollViewerAutomationPeer.cs
- XmlReturnWriter.cs
- StylusPointPropertyUnit.cs
- TreeNodeEventArgs.cs
- ContextMenuAutomationPeer.cs
- PrintPreviewGraphics.cs
- dtdvalidator.cs
- DiscriminatorMap.cs
- ToolStripDropDownButton.cs
- DbCommandTree.cs
- StructuredTypeInfo.cs
- LocalValueEnumerator.cs
- XmlSchemaException.cs
- DataSourceXmlSerializationAttribute.cs
- PartialClassGenerationTaskInternal.cs
- ScriptServiceAttribute.cs
- CleanUpVirtualizedItemEventArgs.cs
- CommentEmitter.cs
- AlternateView.cs
- SqlDataSourceFilteringEventArgs.cs
- GridViewEditEventArgs.cs
- SoapAttributeOverrides.cs
- DetailsViewRowCollection.cs
- Native.cs
- WindowsStartMenu.cs
- CopyOnWriteList.cs
- HttpContext.cs
- WindowsListViewItemCheckBox.cs
- AutomationPatternInfo.cs
- GlyphCollection.cs
- Triplet.cs
- BooleanAnimationBase.cs
- BasicDesignerLoader.cs
- control.ime.cs
- PageVisual.cs
- Point3DCollection.cs
- ClientCultureInfo.cs
- IPEndPointCollection.cs
- MessageBodyMemberAttribute.cs
- ToolboxBitmapAttribute.cs
- Fonts.cs
- WebBrowserDocumentCompletedEventHandler.cs
- FactoryGenerator.cs
- GeneralTransform3D.cs
- CorrelationManager.cs
- Input.cs
- WebBrowser.cs
- TabControlEvent.cs
- EntityTypeBase.cs
- DesignerLoader.cs
- SoundPlayer.cs
- LogExtent.cs
- Translator.cs
- StatusStrip.cs
- HtmlGenericControl.cs
- ApplicationId.cs
- CommandHelpers.cs
- TransformProviderWrapper.cs
- XmlNodeReader.cs
- VisualStyleInformation.cs
- LongSumAggregationOperator.cs
- WindowHideOrCloseTracker.cs
- DependencyProperty.cs
- DataPagerFieldItem.cs
- NavigationPropertySingletonExpression.cs
- CompiledXpathExpr.cs
- NativeCppClassAttribute.cs
- LogicalExpr.cs
- StateDesigner.cs
- SystemResourceKey.cs
- UInt64.cs
- MissingMemberException.cs
- FactoryRecord.cs
- MarshalByRefObject.cs