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
- BitmapDownload.cs
- HttpApplication.cs
- MatrixIndependentAnimationStorage.cs
- DataObjectAttribute.cs
- UnicastIPAddressInformationCollection.cs
- ContextDataSource.cs
- MemberMaps.cs
- ImageCodecInfo.cs
- HttpConfigurationSystem.cs
- LocatorManager.cs
- HTMLTextWriter.cs
- BaseDataList.cs
- OverflowException.cs
- InvokeMemberBinder.cs
- DragDeltaEventArgs.cs
- ActiveDocumentEvent.cs
- XmlQueryTypeFactory.cs
- AQNBuilder.cs
- HistoryEventArgs.cs
- rsa.cs
- PropertyMetadata.cs
- RecordBuilder.cs
- RewritingValidator.cs
- WebPartsPersonalization.cs
- XmlDataLoader.cs
- FileDialog.cs
- DataSourceControlBuilder.cs
- HostingEnvironment.cs
- CloudCollection.cs
- ComponentDispatcher.cs
- CompositeDuplexElement.cs
- MetadataArtifactLoaderResource.cs
- AppModelKnownContentFactory.cs
- NamespaceCollection.cs
- ContentHostHelper.cs
- RegexMatchCollection.cs
- SkipStoryboardToFill.cs
- RangeValidator.cs
- DesignerSelectionListAdapter.cs
- FactoryMaker.cs
- DbgUtil.cs
- VoiceChangeEventArgs.cs
- UserPrincipalNameElement.cs
- BufferedStream.cs
- ReliabilityContractAttribute.cs
- DataTableReaderListener.cs
- DataViewManagerListItemTypeDescriptor.cs
- Exceptions.cs
- DataSourceListEditor.cs
- BitmapEffectCollection.cs
- DbProviderFactory.cs
- GradientSpreadMethodValidation.cs
- CompositeScriptReferenceEventArgs.cs
- SqlConnectionManager.cs
- AttributeCollection.cs
- TextStore.cs
- ExpressionBindings.cs
- InfoCardArgumentException.cs
- PassportAuthenticationModule.cs
- loginstatus.cs
- DataBindingHandlerAttribute.cs
- DrawingContextDrawingContextWalker.cs
- WebBrowserNavigatedEventHandler.cs
- FacetEnabledSchemaElement.cs
- DependencySource.cs
- compensatingcollection.cs
- ApplyImportsAction.cs
- Rect3DConverter.cs
- DependencyObject.cs
- ErrorLog.cs
- DataGridViewRowPostPaintEventArgs.cs
- OrthographicCamera.cs
- WithStatement.cs
- UriSectionReader.cs
- SchemaImporterExtension.cs
- _emptywebproxy.cs
- _TransmitFileOverlappedAsyncResult.cs
- EnlistmentState.cs
- EpmSyndicationContentSerializer.cs
- StaticExtension.cs
- AtomServiceDocumentSerializer.cs
- XmlSchemaAny.cs
- ClientRolePrincipal.cs
- ResolveDuplexCD1AsyncResult.cs
- ValidationEventArgs.cs
- GridViewSelectEventArgs.cs
- FileDialogCustomPlace.cs
- WindowInteropHelper.cs
- StorageSetMapping.cs
- UpdateCommand.cs
- CookieHandler.cs
- ClientApiGenerator.cs
- AspProxy.cs
- latinshape.cs
- InkCollectionBehavior.cs
- ConsoleTraceListener.cs
- SynchronizingStream.cs
- securitycriticaldataClass.cs
- SocketInformation.cs
- BindingListCollectionView.cs