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
- ToolStripItemDesigner.cs
- Utils.cs
- ControlBindingsCollection.cs
- LinqDataSourceValidationException.cs
- NavigationWindow.cs
- StylusButtonCollection.cs
- BrowsableAttribute.cs
- documentation.cs
- BigInt.cs
- X509ChainPolicy.cs
- TempEnvironment.cs
- Permission.cs
- UInt32Storage.cs
- WorkflowLayouts.cs
- ListBase.cs
- CompiledWorkflowDefinitionContext.cs
- WebServiceTypeData.cs
- RawStylusSystemGestureInputReport.cs
- QueryGeneratorBase.cs
- XsltInput.cs
- DataBoundControlActionList.cs
- basecomparevalidator.cs
- XmlDocument.cs
- WebPartConnectionsEventArgs.cs
- RootDesignerSerializerAttribute.cs
- FilteredAttributeCollection.cs
- ColorMap.cs
- BrowserCapabilitiesCompiler.cs
- PowerStatus.cs
- Typeface.cs
- SettingsPropertyIsReadOnlyException.cs
- CodeIdentifier.cs
- ButtonStandardAdapter.cs
- HighlightVisual.cs
- IntSecurity.cs
- InternalControlCollection.cs
- DeobfuscatingStream.cs
- SequentialWorkflowRootDesigner.cs
- LinqDataSourceStatusEventArgs.cs
- EngineSiteSapi.cs
- RSAOAEPKeyExchangeFormatter.cs
- RowToParametersTransformer.cs
- ApplicationInterop.cs
- UpDownBase.cs
- EventOpcode.cs
- ForwardPositionQuery.cs
- SelectionItemPattern.cs
- RequestContextBase.cs
- DataGridBoolColumn.cs
- EventSinkActivityDesigner.cs
- FormsAuthenticationCredentials.cs
- BamlLocalizabilityResolver.cs
- XmlSchemaGroup.cs
- DataGridViewLayoutData.cs
- SelectionHighlightInfo.cs
- SQLSingle.cs
- DataGridColumnStyleMappingNameEditor.cs
- DesignTimeDataBinding.cs
- DBAsyncResult.cs
- CellCreator.cs
- DbConnectionPoolCounters.cs
- Style.cs
- PositiveTimeSpanValidator.cs
- TypedRowHandler.cs
- WebPartDescription.cs
- ContainsRowNumberChecker.cs
- ProfileSettings.cs
- ServiceHandle.cs
- StrokeNodeOperations.cs
- ExtenderControl.cs
- HealthMonitoringSectionHelper.cs
- AutomationPeer.cs
- DetailsViewActionList.cs
- SendSecurityHeaderElement.cs
- SessionStateSection.cs
- _ProxyRegBlob.cs
- BooleanAnimationUsingKeyFrames.cs
- MbpInfo.cs
- SafeLibraryHandle.cs
- SettingsPropertyValueCollection.cs
- Debugger.cs
- EventListener.cs
- SqlReorderer.cs
- CodeMethodReturnStatement.cs
- SecurityException.cs
- SqlDataSourceStatusEventArgs.cs
- RowCache.cs
- UiaCoreProviderApi.cs
- ColumnPropertiesGroup.cs
- WsdlHelpGeneratorElement.cs
- XmlNodeChangedEventManager.cs
- TablePatternIdentifiers.cs
- TreeNodeStyleCollectionEditor.cs
- FacetDescription.cs
- ConfigXmlDocument.cs
- DashStyles.cs
- PatternMatcher.cs
- ScriptReferenceEventArgs.cs
- XmlEventCache.cs
- TreeNodeConverter.cs