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
- TraversalRequest.cs
- TemplateInstanceAttribute.cs
- PerformanceCounterCategory.cs
- HtmlFormParameterReader.cs
- FixUp.cs
- FreezableCollection.cs
- CqlLexerHelpers.cs
- WSDualHttpBindingElement.cs
- RoutedEvent.cs
- LongValidator.cs
- _IPv6Address.cs
- ControlsConfig.cs
- Triangle.cs
- OdbcParameterCollection.cs
- DrawingAttributes.cs
- ItemsControlAutomationPeer.cs
- LinkArea.cs
- LayoutEngine.cs
- OracleCommandSet.cs
- XmlSiteMapProvider.cs
- BatchParser.cs
- WindowClosedEventArgs.cs
- InnerItemCollectionView.cs
- XamlSerializerUtil.cs
- PlanCompilerUtil.cs
- Rijndael.cs
- TextServicesHost.cs
- SqlCrossApplyToCrossJoin.cs
- BCLDebug.cs
- DynamicILGenerator.cs
- InvalidFilterCriteriaException.cs
- StylusPointPropertyInfoDefaults.cs
- XmlProcessingInstruction.cs
- StaticExtensionConverter.cs
- RouteParameter.cs
- SHA512.cs
- HtmlTableCellCollection.cs
- DbProviderSpecificTypePropertyAttribute.cs
- AuthorizationSection.cs
- WizardForm.cs
- QuerySetOp.cs
- UnicodeEncoding.cs
- WindowsToolbarItemAsMenuItem.cs
- PolyLineSegment.cs
- WebDescriptionAttribute.cs
- ArgumentNullException.cs
- CompilationSection.cs
- CategoryGridEntry.cs
- ParamArrayAttribute.cs
- HttpListener.cs
- XmlSchemaSimpleTypeList.cs
- TraceRecord.cs
- SqlRowUpdatedEvent.cs
- DownloadProgressEventArgs.cs
- CapiSymmetricAlgorithm.cs
- _NestedMultipleAsyncResult.cs
- CacheDict.cs
- ErrorFormatter.cs
- Unit.cs
- TemplatedWizardStep.cs
- XmlSerializer.cs
- IndexedGlyphRun.cs
- dbenumerator.cs
- CompositeControl.cs
- ButtonChrome.cs
- AttachedPropertyMethodSelector.cs
- XamlPathDataSerializer.cs
- FreeFormDesigner.cs
- EventData.cs
- OdbcPermission.cs
- CriticalFileToken.cs
- sqlpipe.cs
- HyperLinkColumn.cs
- XsltLoader.cs
- GridErrorDlg.cs
- _AutoWebProxyScriptWrapper.cs
- SettingsBase.cs
- Parser.cs
- UncommonField.cs
- ReadOnlyNameValueCollection.cs
- DuplexClientBase.cs
- LinearGradientBrush.cs
- CompilationLock.cs
- LineUtil.cs
- FormsAuthenticationModule.cs
- ReceiveSecurityHeader.cs
- FunctionImportMapping.cs
- HyperLinkColumn.cs
- mediaeventshelper.cs
- FixedPage.cs
- ToolBar.cs
- CodeMemberMethod.cs
- RegexRunnerFactory.cs
- RowTypePropertyElement.cs
- ThreadAbortException.cs
- ProjectionCamera.cs
- DataGridViewLinkColumn.cs
- StateMachineSubscriptionManager.cs
- StorageMappingFragment.cs
- XXXOnTypeBuilderInstantiation.cs