Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SchemaType.cs
- TemplateControlParser.cs
- Duration.cs
- PropertyIdentifier.cs
- CryptoApi.cs
- FormCollection.cs
- TreeNode.cs
- KeyValuePairs.cs
- DLinqColumnProvider.cs
- FragmentQuery.cs
- HostedTransportConfigurationBase.cs
- Panel.cs
- PlanCompilerUtil.cs
- WindowsTokenRoleProvider.cs
- messageonlyhwndwrapper.cs
- PartialCachingControl.cs
- DbProviderFactory.cs
- TreeNode.cs
- WebReferenceOptions.cs
- SnapLine.cs
- UnaryNode.cs
- CompilerTypeWithParams.cs
- ComponentEditorPage.cs
- BufferBuilder.cs
- Point3DCollectionConverter.cs
- Rect3D.cs
- BufferBuilder.cs
- BatchWriter.cs
- ScaleTransform3D.cs
- SQLGuid.cs
- HGlobalSafeHandle.cs
- Bezier.cs
- TextLineResult.cs
- HttpRuntime.cs
- DataObjectEventArgs.cs
- securitycriticaldataClass.cs
- Vector3DCollection.cs
- DefinitionUpdate.cs
- SchemaDeclBase.cs
- KeyGesture.cs
- SHA384Cng.cs
- SafeEventHandle.cs
- BadImageFormatException.cs
- AuthenticatingEventArgs.cs
- StatusBarPanel.cs
- XsdDateTime.cs
- ImportDesigner.xaml.cs
- GroupItem.cs
- SmtpException.cs
- GridItemProviderWrapper.cs
- XmlNodeReader.cs
- EmbeddedMailObject.cs
- ContextProperty.cs
- FunctionNode.cs
- ParallelEnumerableWrapper.cs
- SessionEndingEventArgs.cs
- DataControlButton.cs
- TextServicesProperty.cs
- XmlSchemaChoice.cs
- ObjectDataSource.cs
- Image.cs
- MatrixCamera.cs
- DataGridColumn.cs
- Light.cs
- WebPartUtil.cs
- EntityViewContainer.cs
- BooleanKeyFrameCollection.cs
- HorizontalAlignConverter.cs
- ComplexPropertyEntry.cs
- WebServiceHandler.cs
- MessageBox.cs
- MailDefinition.cs
- HighContrastHelper.cs
- GraphicsContainer.cs
- DetailsViewPagerRow.cs
- XPathDocument.cs
- ZoomComboBox.cs
- TableLayoutStyleCollection.cs
- BindingValueChangedEventArgs.cs
- Debugger.cs
- MailBnfHelper.cs
- XmlSchemaException.cs
- TextRangeSerialization.cs
- PeerService.cs
- TemplateParser.cs
- AspNetCompatibilityRequirementsAttribute.cs
- MetadataUtilsSmi.cs
- OdbcPermission.cs
- ControllableStoryboardAction.cs
- PrintingPermissionAttribute.cs
- LiteralSubsegment.cs
- MSAANativeProvider.cs
- ObjectSet.cs
- DebugTrace.cs
- BevelBitmapEffect.cs
- MdiWindowListItemConverter.cs
- TdsParser.cs
- ZoneLinkButton.cs
- MembershipUser.cs
- PartialList.cs