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 / UserPersonalizationStateInfo.cs / 1 / UserPersonalizationStateInfo.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)] public sealed class UserPersonalizationStateInfo : PersonalizationStateInfo { private string _username; private DateTime _lastActivityDate; public UserPersonalizationStateInfo(string path, DateTime lastUpdatedDate, int size, string username, DateTime lastActivityDate) : base(path, lastUpdatedDate, size) { _username = StringUtil.CheckAndTrimString(username, "username"); _lastActivityDate = lastActivityDate.ToUniversalTime(); } public string Username { get { return _username; } } public DateTime LastActivityDate { get { return _lastActivityDate.ToLocalTime(); } } } } // 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)] public sealed class UserPersonalizationStateInfo : PersonalizationStateInfo { private string _username; private DateTime _lastActivityDate; public UserPersonalizationStateInfo(string path, DateTime lastUpdatedDate, int size, string username, DateTime lastActivityDate) : base(path, lastUpdatedDate, size) { _username = StringUtil.CheckAndTrimString(username, "username"); _lastActivityDate = lastActivityDate.ToUniversalTime(); } public string Username { get { return _username; } } public DateTime LastActivityDate { get { return _lastActivityDate.ToLocalTime(); } } } } // 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
- PrinterResolution.cs
- TypeSemantics.cs
- StateValidator.cs
- FontStyle.cs
- SimpleFieldTemplateUserControl.cs
- UnaryOperationBinder.cs
- ReliableDuplexSessionChannel.cs
- DisplayMemberTemplateSelector.cs
- ExpressionBindingCollection.cs
- DataViewManagerListItemTypeDescriptor.cs
- PublisherIdentityPermission.cs
- DirtyTextRange.cs
- Page.cs
- MouseGesture.cs
- Region.cs
- StateRuntime.cs
- WorkItem.cs
- ClientEventManager.cs
- CustomPopupPlacement.cs
- ProgressiveCrcCalculatingStream.cs
- cookiecollection.cs
- URLAttribute.cs
- SQLDoubleStorage.cs
- HwndKeyboardInputProvider.cs
- CheckBoxList.cs
- SecurityKeyUsage.cs
- DataIdProcessor.cs
- StylusPointProperties.cs
- SHA256Cng.cs
- Zone.cs
- ParallelTimeline.cs
- SocketStream.cs
- PrinterUnitConvert.cs
- DataTemplateSelector.cs
- Properties.cs
- CssTextWriter.cs
- EntityViewGenerator.cs
- ColumnHeaderConverter.cs
- baseaxisquery.cs
- DatePickerTextBox.cs
- DayRenderEvent.cs
- DefaultPerformanceCounters.cs
- NativeMethods.cs
- SiteOfOriginContainer.cs
- TriggerCollection.cs
- SubqueryRules.cs
- MgmtResManager.cs
- Vector3DCollection.cs
- LayoutTable.cs
- HotSpotCollection.cs
- BaseUriHelper.cs
- ReferenceAssemblyAttribute.cs
- PasswordRecovery.cs
- CalendarDay.cs
- PagerSettings.cs
- Transform3DGroup.cs
- SiteMapNodeItemEventArgs.cs
- RuntimeCompatibilityAttribute.cs
- UDPClient.cs
- GridViewAutomationPeer.cs
- ClientSettingsStore.cs
- MarkerProperties.cs
- SafeNativeMethods.cs
- PropertyGrid.cs
- DirectoryInfo.cs
- RequestCachePolicyConverter.cs
- ButtonAutomationPeer.cs
- EmptyCollection.cs
- ListViewInsertionMark.cs
- CapiSymmetricAlgorithm.cs
- IncrementalHitTester.cs
- ColorContext.cs
- TimeSpan.cs
- GradientStop.cs
- SafeBitVector32.cs
- ACE.cs
- ItemChangedEventArgs.cs
- ExplicitDiscriminatorMap.cs
- FileAuthorizationModule.cs
- BinaryWriter.cs
- ContainerUIElement3D.cs
- DataGridViewCellFormattingEventArgs.cs
- StorageMappingItemLoader.cs
- EncoderReplacementFallback.cs
- Predicate.cs
- WorkflowLayouts.cs
- HandlerFactoryCache.cs
- configsystem.cs
- ObjectResult.cs
- AssemblyResourceLoader.cs
- ContentPlaceHolder.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- AdapterUtil.cs
- ImageCodecInfo.cs
- SqlClientWrapperSmiStreamChars.cs
- ConnectionStringSettings.cs
- TextBox.cs
- ParseChildrenAsPropertiesAttribute.cs
- IPAddress.cs
- BamlLocalizer.cs