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
- NativeMethods.cs
- ComponentChangedEvent.cs
- TableLayoutStyleCollection.cs
- Region.cs
- FileDialog.cs
- IpcChannel.cs
- TreeNodeStyle.cs
- FixedHyperLink.cs
- BufferBuilder.cs
- MediaSystem.cs
- XmlTextEncoder.cs
- ToolboxComponentsCreatedEventArgs.cs
- GraphicsContainer.cs
- PlatformCulture.cs
- SqlCrossApplyToCrossJoin.cs
- ScriptControlDescriptor.cs
- NetCodeGroup.cs
- RowToFieldTransformer.cs
- Icon.cs
- Stylus.cs
- Image.cs
- EntityDataSourceStatementEditorForm.cs
- DataServiceClientException.cs
- PermissionSetEnumerator.cs
- XmlAttributeCollection.cs
- AutoGeneratedField.cs
- TextBox.cs
- TcpProcessProtocolHandler.cs
- XmlDownloadManager.cs
- DataGridLengthConverter.cs
- Highlights.cs
- RepeaterDesigner.cs
- ConfigurationValue.cs
- ProcessModelInfo.cs
- HttpRequestBase.cs
- HtmlInputImage.cs
- IntSecurity.cs
- TriggerActionCollection.cs
- SecurityTokenInclusionMode.cs
- CqlLexer.cs
- WarningException.cs
- XmlAnyElementAttributes.cs
- XmlEncodedRawTextWriter.cs
- SupportsEventValidationAttribute.cs
- AuthorizationRuleCollection.cs
- IgnoreFileBuildProvider.cs
- KeyedHashAlgorithm.cs
- OleDbSchemaGuid.cs
- TcpChannelHelper.cs
- DataGridItemEventArgs.cs
- LayoutSettings.cs
- WizardForm.cs
- SpecularMaterial.cs
- HwndSourceParameters.cs
- ColorKeyFrameCollection.cs
- EntityDesignerBuildProvider.cs
- DocumentViewerConstants.cs
- TextBlockAutomationPeer.cs
- IndicCharClassifier.cs
- DateTimeOffset.cs
- PaperSize.cs
- EncodedStreamFactory.cs
- XmlElementCollection.cs
- followingquery.cs
- ByteAnimationUsingKeyFrames.cs
- Brushes.cs
- ObjectViewEntityCollectionData.cs
- QueryStringConverter.cs
- FileStream.cs
- HostedElements.cs
- StylusDownEventArgs.cs
- DetailsViewModeEventArgs.cs
- Calendar.cs
- StatusBarDrawItemEvent.cs
- SqlDataRecord.cs
- ExceptionRoutedEventArgs.cs
- QuaternionConverter.cs
- RightsManagementInformation.cs
- ListSourceHelper.cs
- DesignTimeParseData.cs
- KeyMatchBuilder.cs
- Point4DValueSerializer.cs
- DataGridCell.cs
- DeviceContext2.cs
- ListViewUpdateEventArgs.cs
- BCLDebug.cs
- DecoderReplacementFallback.cs
- XslUrlEditor.cs
- ExpressionCopier.cs
- ServiceParser.cs
- InfiniteTimeSpanConverter.cs
- FixedFlowMap.cs
- InheritanceContextChangedEventManager.cs
- TabControl.cs
- X509ClientCertificateCredentialsElement.cs
- DataServices.cs
- TextShapeableCharacters.cs
- ReaderWriterLockWrapper.cs
- DataSpaceManager.cs
- PenCursorManager.cs