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
- MeasureData.cs
- IApplicationTrustManager.cs
- RoutingConfiguration.cs
- OperationContractGenerationContext.cs
- CatalogPartChrome.cs
- BindingMemberInfo.cs
- BitmapMetadata.cs
- RichTextBoxDesigner.cs
- OperatingSystem.cs
- ThreadStaticAttribute.cs
- DispatcherBuilder.cs
- SafeFileMapViewHandle.cs
- TypeUsageBuilder.cs
- ObjectFullSpanRewriter.cs
- ChangePassword.cs
- SynchronizationHandlesCodeDomSerializer.cs
- XmlAttributeOverrides.cs
- KeyboardNavigation.cs
- TableCellsCollectionEditor.cs
- DesignerLoader.cs
- RoleManagerSection.cs
- SoapTypeAttribute.cs
- ListDictionaryInternal.cs
- CompensatableTransactionScopeActivity.cs
- TextRangeEdit.cs
- GuidTagList.cs
- DataGridViewComponentPropertyGridSite.cs
- PathParser.cs
- AnnotationDocumentPaginator.cs
- SoapSchemaExporter.cs
- InternalBufferOverflowException.cs
- Vector3DValueSerializer.cs
- SQLDoubleStorage.cs
- ColumnPropertiesGroup.cs
- SHA512.cs
- DbDataRecord.cs
- ResizeBehavior.cs
- CodeCompileUnit.cs
- SettingsPropertyNotFoundException.cs
- DocumentViewer.cs
- MemoryStream.cs
- TimeManager.cs
- _ListenerResponseStream.cs
- RecognitionResult.cs
- AssemblyBuilder.cs
- BindingListCollectionView.cs
- ErrorHandlerFaultInfo.cs
- EncodingDataItem.cs
- HitTestWithGeometryDrawingContextWalker.cs
- CodeMemberProperty.cs
- AlternateViewCollection.cs
- TransformedBitmap.cs
- _ListenerResponseStream.cs
- DateTimeValueSerializer.cs
- SparseMemoryStream.cs
- RowParagraph.cs
- SerializationSectionGroup.cs
- CompilationUtil.cs
- RawStylusInputReport.cs
- RepeatBehaviorConverter.cs
- GlyphRunDrawing.cs
- EntityCollection.cs
- DbCommandDefinition.cs
- CookieProtection.cs
- TemplateControlCodeDomTreeGenerator.cs
- RequestCachingSection.cs
- HtmlGenericControl.cs
- SimpleHandlerFactory.cs
- PrintPageEvent.cs
- GeneralTransform.cs
- sqlpipe.cs
- GeometryDrawing.cs
- FontClient.cs
- PropertyBuilder.cs
- SelectionPatternIdentifiers.cs
- InvalidWMPVersionException.cs
- DateTimeParse.cs
- StaticExtension.cs
- ByteKeyFrameCollection.cs
- FastEncoder.cs
- ListViewItem.cs
- PointHitTestResult.cs
- ResourceReader.cs
- ISAPIWorkerRequest.cs
- DurableMessageDispatchInspector.cs
- OperationResponse.cs
- HttpProtocolImporter.cs
- Attributes.cs
- ElementFactory.cs
- RegisteredDisposeScript.cs
- KeyValueConfigurationCollection.cs
- PaintEvent.cs
- StickyNoteContentControl.cs
- _ProxyChain.cs
- RepeatButton.cs
- DataGridPagerStyle.cs
- TempFiles.cs
- CardSpaceShim.cs
- FirstMatchCodeGroup.cs
- Int32RectConverter.cs