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
- EncryptedData.cs
- InkCanvasSelectionAdorner.cs
- TextBoxRenderer.cs
- TextEndOfSegment.cs
- XmlCodeExporter.cs
- SessionPageStateSection.cs
- Certificate.cs
- InterleavedZipPartStream.cs
- Walker.cs
- OdbcTransaction.cs
- BinHexDecoder.cs
- Matrix3D.cs
- Point3DValueSerializer.cs
- FixedSOMGroup.cs
- AnimatedTypeHelpers.cs
- ComplexLine.cs
- PortCache.cs
- ProxySimple.cs
- Label.cs
- ResourcesGenerator.cs
- XmlSerializerSection.cs
- HttpGetServerProtocol.cs
- milrender.cs
- Hex.cs
- CommentEmitter.cs
- UpdateProgress.cs
- DBConcurrencyException.cs
- DataGridViewComboBoxCell.cs
- InvalidateEvent.cs
- DelegateArgument.cs
- CmsUtils.cs
- MachineKeySection.cs
- XmlNode.cs
- ArrayList.cs
- CorrelationExtension.cs
- RemoteCryptoSignHashRequest.cs
- WithParamAction.cs
- StrokeSerializer.cs
- DateTimeUtil.cs
- ClientScriptManagerWrapper.cs
- TouchFrameEventArgs.cs
- arclist.cs
- SafeReversePInvokeHandle.cs
- FilterQueryOptionExpression.cs
- Merger.cs
- IHttpResponseInternal.cs
- PreviousTrackingServiceAttribute.cs
- ELinqQueryState.cs
- NullRuntimeConfig.cs
- SafeViewOfFileHandle.cs
- MaskInputRejectedEventArgs.cs
- DebuggerAttributes.cs
- SecurityHeaderElementInferenceEngine.cs
- HttpStaticObjectsCollectionWrapper.cs
- DetailsViewInsertedEventArgs.cs
- WebCategoryAttribute.cs
- MustUnderstandBehavior.cs
- Normalizer.cs
- EntitySqlQueryCacheEntry.cs
- ProfileParameter.cs
- PopupRoot.cs
- MultiView.cs
- CornerRadius.cs
- WebPart.cs
- StringAttributeCollection.cs
- ProxyWebPartConnectionCollection.cs
- StartUpEventArgs.cs
- SymmetricAlgorithm.cs
- BridgeDataRecord.cs
- DropShadowEffect.cs
- KeyToListMap.cs
- MonitoringDescriptionAttribute.cs
- CheckedPointers.cs
- ObjectDataSourceMethodEventArgs.cs
- _SslStream.cs
- HostedHttpContext.cs
- DataStorage.cs
- Point4D.cs
- TrackingValidationObjectDictionary.cs
- Rijndael.cs
- HtmlTable.cs
- HttpHeaderCollection.cs
- NullableIntSumAggregationOperator.cs
- Attributes.cs
- CounterSetInstanceCounterDataSet.cs
- IndependentlyAnimatedPropertyMetadata.cs
- TableDesigner.cs
- RenderCapability.cs
- TextStore.cs
- ControlUtil.cs
- AnonymousIdentificationSection.cs
- ProviderUtil.cs
- _WinHttpWebProxyDataBuilder.cs
- MenuCommandService.cs
- FileDialog.cs
- ReliableDuplexSessionChannel.cs
- SQLRoleProvider.cs
- PkcsMisc.cs
- MemberHolder.cs
- SQLResource.cs