Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ModuleElement.cs
- WindowsFormsHost.cs
- BasicHttpSecurity.cs
- Brush.cs
- ObjectQueryState.cs
- AttributeQuery.cs
- InstanceView.cs
- CLRBindingWorker.cs
- WindowsEditBoxRange.cs
- ConfigurationValue.cs
- Publisher.cs
- FunctionNode.cs
- DirectoryObjectSecurity.cs
- ChineseLunisolarCalendar.cs
- FixedSOMSemanticBox.cs
- EventLogRecord.cs
- odbcmetadatafactory.cs
- ViewGenResults.cs
- _AuthenticationState.cs
- DataSpaceManager.cs
- RelatedImageListAttribute.cs
- RegistryHandle.cs
- DataGridCellAutomationPeer.cs
- HttpModuleActionCollection.cs
- GenericAuthenticationEventArgs.cs
- XhtmlBasicLabelAdapter.cs
- autovalidator.cs
- DrawingContextDrawingContextWalker.cs
- ClientRuntimeConfig.cs
- StaticTextPointer.cs
- FontEmbeddingManager.cs
- InvalidPipelineStoreException.cs
- CompModHelpers.cs
- SpellerError.cs
- ADMembershipUser.cs
- WebEventCodes.cs
- WebPartsSection.cs
- Internal.cs
- CodeTypeMember.cs
- WinEventTracker.cs
- MessageDirection.cs
- IsolatedStorageFilePermission.cs
- WindowHideOrCloseTracker.cs
- GridViewRowEventArgs.cs
- DataGridViewLayoutData.cs
- ColorEditor.cs
- ProfilePropertyMetadata.cs
- UserControl.cs
- QueryCacheManager.cs
- BitmapEffectGroup.cs
- ConstrainedDataObject.cs
- PerspectiveCamera.cs
- Style.cs
- AttributedMetaModel.cs
- StyleCollection.cs
- MulticastNotSupportedException.cs
- ManagedWndProcTracker.cs
- XmlBindingWorker.cs
- FederatedMessageSecurityOverHttp.cs
- SamlDoNotCacheCondition.cs
- SamlDelegatingWriter.cs
- UnmanagedMarshal.cs
- GeometryCombineModeValidation.cs
- FileLogRecordHeader.cs
- DataGridViewDataErrorEventArgs.cs
- CryptoStream.cs
- BezierSegment.cs
- _NegotiateClient.cs
- BaseDataList.cs
- BufferModeSettings.cs
- ReferenceTypeElement.cs
- RemoteWebConfigurationHostServer.cs
- ValidationSummary.cs
- _LazyAsyncResult.cs
- NamespaceQuery.cs
- EventWaitHandle.cs
- Codec.cs
- SortQuery.cs
- ConfigurationCollectionAttribute.cs
- WebEvents.cs
- TraceHandlerErrorFormatter.cs
- SendActivity.cs
- OpacityConverter.cs
- FormViewModeEventArgs.cs
- GuidConverter.cs
- EntityKeyElement.cs
- SQLResource.cs
- CompModSwitches.cs
- OrderablePartitioner.cs
- AncestorChangedEventArgs.cs
- ExtensionQuery.cs
- XPathDocumentBuilder.cs
- ClonableStack.cs
- ProgressBar.cs
- ItemList.cs
- ExceptionUtil.cs
- XmlCharType.cs
- FixedSOMTable.cs
- Types.cs
- DataGridViewRowCancelEventArgs.cs