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
- DataControlButton.cs
- StandardBindingElement.cs
- Authorization.cs
- InputLangChangeRequestEvent.cs
- XPathNodeList.cs
- XPathNodeHelper.cs
- MaskedTextBoxTextEditorDropDown.cs
- CodePropertyReferenceExpression.cs
- RowTypeElement.cs
- InstancePersistenceCommand.cs
- StatusBarPanel.cs
- PerformanceCounterNameAttribute.cs
- WebRequest.cs
- HttpRequestWrapper.cs
- XmlNamedNodeMap.cs
- DataGridViewRowCancelEventArgs.cs
- ZoneMembershipCondition.cs
- RightsManagementEncryptedStream.cs
- CompilerGeneratedAttribute.cs
- ConfigurationValues.cs
- Shape.cs
- SamlDelegatingWriter.cs
- TreeViewItemAutomationPeer.cs
- SweepDirectionValidation.cs
- WebGetAttribute.cs
- SqlCrossApplyToCrossJoin.cs
- GridViewDeleteEventArgs.cs
- SortExpressionBuilder.cs
- ManagedFilter.cs
- ParameterToken.cs
- FontResourceCache.cs
- DataGridViewRowsAddedEventArgs.cs
- KnownBoxes.cs
- ContextStack.cs
- BuilderElements.cs
- HotSpot.cs
- ReliabilityContractAttribute.cs
- PropertyMappingExceptionEventArgs.cs
- EntityViewGenerationAttribute.cs
- CodeTypeMember.cs
- CategoryNameCollection.cs
- XamlFilter.cs
- FastEncoder.cs
- returneventsaver.cs
- HttpRawResponse.cs
- ActivityExecutorSurrogate.cs
- ObjectPersistData.cs
- FontStyleConverter.cs
- XmlSchemaImporter.cs
- EditorPartChrome.cs
- DynamicValueConverter.cs
- XComponentModel.cs
- SqlMethodTransformer.cs
- TreeView.cs
- BufferedGraphicsManager.cs
- DataSourceHelper.cs
- FullTextBreakpoint.cs
- cryptoapiTransform.cs
- DataGridViewCheckBoxColumn.cs
- ConnectionConsumerAttribute.cs
- CSharpCodeProvider.cs
- BitmapVisualManager.cs
- ErrorActivity.cs
- OdbcFactory.cs
- WindowsIdentity.cs
- SmiMetaData.cs
- XmlUtf8RawTextWriter.cs
- ErrorItem.cs
- PrinterSettings.cs
- _BasicClient.cs
- XsdValidatingReader.cs
- DbReferenceCollection.cs
- InputBinding.cs
- ViewCellSlot.cs
- RetrieveVirtualItemEventArgs.cs
- ManagementBaseObject.cs
- Container.cs
- TextUtf8RawTextWriter.cs
- DataGrid.cs
- TempFiles.cs
- UnauthorizedAccessException.cs
- ListSortDescription.cs
- MergablePropertyAttribute.cs
- XmlParserContext.cs
- ApplicationInfo.cs
- DiscoveryUtility.cs
- Page.cs
- SymLanguageType.cs
- XmlUtil.cs
- TCEAdapterGenerator.cs
- TextChange.cs
- DiffuseMaterial.cs
- ViewSimplifier.cs
- UnsafeNetInfoNativeMethods.cs
- XamlSerializer.cs
- CacheEntry.cs
- SemaphoreSecurity.cs
- _ScatterGatherBuffers.cs
- ILGenerator.cs
- UiaCoreApi.cs