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
- HScrollBar.cs
- Thread.cs
- IisTraceWebEventProvider.cs
- DodSequenceMerge.cs
- SqlInternalConnectionSmi.cs
- SystemResources.cs
- DefaultBinder.cs
- ExportOptions.cs
- Region.cs
- HtmlContainerControl.cs
- EventMappingSettings.cs
- DefaultHttpHandler.cs
- PerfCounters.cs
- UpdateTranslator.cs
- PreviewPrintController.cs
- PathSegment.cs
- TimeZoneNotFoundException.cs
- odbcmetadatafactory.cs
- LambdaCompiler.Generated.cs
- XPathCompileException.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ChannelServices.cs
- XmlChoiceIdentifierAttribute.cs
- StringReader.cs
- Focus.cs
- VariantWrapper.cs
- MdImport.cs
- PrintingPermission.cs
- CriticalFinalizerObject.cs
- CellLabel.cs
- RelatedEnd.cs
- FormsAuthenticationUser.cs
- RuntimeEnvironment.cs
- Paragraph.cs
- Point4DConverter.cs
- WebBrowserBase.cs
- ItemType.cs
- ParameterModifier.cs
- PrinterSettings.cs
- SoapFault.cs
- PinnedBufferMemoryStream.cs
- DtdParser.cs
- CollectionChange.cs
- ScrollPattern.cs
- WebColorConverter.cs
- Part.cs
- DeviceContext.cs
- CommentGlyph.cs
- PhysicalFontFamily.cs
- Operator.cs
- BufferedWebEventProvider.cs
- OleDbErrorCollection.cs
- WinInetCache.cs
- WaveHeader.cs
- DefaultHttpHandler.cs
- GridViewSelectEventArgs.cs
- QueryCorrelationInitializer.cs
- BitmapEffectOutputConnector.cs
- Rotation3D.cs
- Range.cs
- PartitionedStreamMerger.cs
- SessionPageStateSection.cs
- CssTextWriter.cs
- ErrorWebPart.cs
- DateTimeParse.cs
- InvalidEnumArgumentException.cs
- ContractAdapter.cs
- FormatterServices.cs
- Transactions.cs
- EntityViewGenerationAttribute.cs
- FrameAutomationPeer.cs
- SendAgentStatusRequest.cs
- WpfXamlType.cs
- SafeViewOfFileHandle.cs
- DatePickerTextBox.cs
- RuleSetDialog.cs
- NumericUpDown.cs
- CommandBindingCollection.cs
- ObjectIDGenerator.cs
- DiagnosticsElement.cs
- SchemaCollectionPreprocessor.cs
- wmiprovider.cs
- WebServiceResponse.cs
- DataKey.cs
- PkcsUtils.cs
- InvalidProgramException.cs
- ProfileModule.cs
- EncoderExceptionFallback.cs
- SecurityPolicySection.cs
- BrowserDefinition.cs
- NTAccount.cs
- ServerValidateEventArgs.cs
- UndirectedGraph.cs
- XsdValidatingReader.cs
- NonBatchDirectoryCompiler.cs
- FrameworkElement.cs
- login.cs
- RecordConverter.cs
- CapabilitiesRule.cs
- XmlDataSourceView.cs