Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Cache / FileResponseElement.cs / 1305376 / FileResponseElement.cs
using System; using System.Security.Permissions; using System.Web; using System.Web.Caching; namespace System.Web.Caching { [Serializable] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Unrestricted)] public class FileResponseElement: ResponseElement { private String _path; private long _offset; private long _length; public String Path { get { return _path; } } public long Offset { get { return _offset; } } public long Length { get { return _length; } } private FileResponseElement() { } // hide default constructor public FileResponseElement(String path, long offset, long length) { if (path == null) throw new ArgumentNullException("path"); if (offset < 0) throw new ArgumentOutOfRangeException("offset"); if (length < 0) throw new ArgumentOutOfRangeException("length"); _path = path; _offset = offset; _length = length; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Security.Permissions; using System.Web; using System.Web.Caching; namespace System.Web.Caching { [Serializable] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Unrestricted)] public class FileResponseElement: ResponseElement { private String _path; private long _offset; private long _length; public String Path { get { return _path; } } public long Offset { get { return _offset; } } public long Length { get { return _length; } } private FileResponseElement() { } // hide default constructor public FileResponseElement(String path, long offset, long length) { if (path == null) throw new ArgumentNullException("path"); if (offset < 0) throw new ArgumentOutOfRangeException("offset"); if (length < 0) throw new ArgumentOutOfRangeException("length"); _path = path; _offset = offset; _length = length; } } } // 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
- VolatileResourceManager.cs
- XmlUTF8TextReader.cs
- BoundColumn.cs
- ImageDrawing.cs
- PlanCompiler.cs
- AnnouncementService.cs
- XmlNotation.cs
- RawStylusInput.cs
- CheckBoxPopupAdapter.cs
- RelatedView.cs
- BufferedStream.cs
- CustomValidator.cs
- AudioSignalProblemOccurredEventArgs.cs
- ElementHostAutomationPeer.cs
- CookieParameter.cs
- XXXOnTypeBuilderInstantiation.cs
- ConnectionPoint.cs
- InlineCollection.cs
- SyndicationSerializer.cs
- NativeMethods.cs
- WorkflowOperationFault.cs
- WorkflowInstanceProxy.cs
- WizardStepBase.cs
- ExceptionUtil.cs
- ConstraintEnumerator.cs
- StrokeNodeData.cs
- ResourceKey.cs
- XmlTextReaderImpl.cs
- PenLineJoinValidation.cs
- WinCategoryAttribute.cs
- GPPOINT.cs
- MarkupProperty.cs
- EventSourceCreationData.cs
- PanelStyle.cs
- PageContent.cs
- FormsAuthenticationUser.cs
- AnnouncementEventArgs.cs
- XmlSchemaInfo.cs
- TextBox.cs
- CallContext.cs
- SafeCryptContextHandle.cs
- CustomError.cs
- HttpCookiesSection.cs
- XmlSchemaAttribute.cs
- WeakKeyDictionary.cs
- CodeDOMProvider.cs
- SignatureDescription.cs
- PoisonMessageException.cs
- DynamicILGenerator.cs
- SHA256.cs
- SimplePropertyEntry.cs
- securitycriticaldataClass.cs
- QueryActivatableWorkflowsCommand.cs
- HScrollProperties.cs
- SpecialFolderEnumConverter.cs
- OverflowException.cs
- VectorAnimationBase.cs
- ImageConverter.cs
- RedistVersionInfo.cs
- EndPoint.cs
- StreamSecurityUpgradeProvider.cs
- InternalEnumValidator.cs
- ImageListStreamer.cs
- BitmapCacheBrush.cs
- SingleResultAttribute.cs
- DataAdapter.cs
- HyperLink.cs
- SimpleParser.cs
- ExportOptions.cs
- IPEndPoint.cs
- TextEmbeddedObject.cs
- UiaCoreTypesApi.cs
- SBCSCodePageEncoding.cs
- ProgressPage.cs
- XmlDictionaryWriter.cs
- RegexRunner.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- EUCJPEncoding.cs
- DoubleAnimationUsingKeyFrames.cs
- DataGridHeaderBorder.cs
- invalidudtexception.cs
- ClockGroup.cs
- _TimerThread.cs
- Size.cs
- _SSPIWrapper.cs
- UnrecognizedAssertionsBindingElement.cs
- IntegerValidatorAttribute.cs
- MatchingStyle.cs
- QuadraticBezierSegment.cs
- ConfigurationLocationCollection.cs
- DropDownButton.cs
- OdbcEnvironmentHandle.cs
- CommonDialog.cs
- BindingsSection.cs
- BaseParser.cs
- UInt64Converter.cs
- EntityDataSourceState.cs
- ProcessRequestArgs.cs
- UnsafeNativeMethodsPenimc.cs
- CapabilitiesSection.cs