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
- IntranetCredentialPolicy.cs
- SourceItem.cs
- StylusShape.cs
- COSERVERINFO.cs
- XmlSchemaComplexType.cs
- SQLBinaryStorage.cs
- FormViewDeletedEventArgs.cs
- ETagAttribute.cs
- BamlRecords.cs
- IImplicitResourceProvider.cs
- TabControlCancelEvent.cs
- XmlSchemaExternal.cs
- AffineTransform3D.cs
- DefaultHttpHandler.cs
- FontStyleConverter.cs
- ExpandCollapseProviderWrapper.cs
- DataViewManager.cs
- TypeConstant.cs
- BlockUIContainer.cs
- MatrixKeyFrameCollection.cs
- DataRecordInternal.cs
- ProtocolsConfigurationEntry.cs
- HostSecurityManager.cs
- IdentityManager.cs
- DecimalAnimation.cs
- FolderNameEditor.cs
- SequenceDesigner.cs
- XpsS0ValidatingLoader.cs
- ContentType.cs
- DataGridViewColumnStateChangedEventArgs.cs
- NotFiniteNumberException.cs
- GlobalizationSection.cs
- InlineUIContainer.cs
- ChangePassword.cs
- BinaryFormatter.cs
- InfiniteTimeSpanConverter.cs
- XmlDataProvider.cs
- PopupEventArgs.cs
- OracleConnectionString.cs
- GridViewAutomationPeer.cs
- CompModSwitches.cs
- SqlUtil.cs
- SqlMetaData.cs
- MimeMapping.cs
- FontStyleConverter.cs
- XmlSerializerVersionAttribute.cs
- FastPropertyAccessor.cs
- GroupStyle.cs
- odbcmetadatafactory.cs
- DuplicateWaitObjectException.cs
- Converter.cs
- ListQueryResults.cs
- QilNode.cs
- PrinterResolution.cs
- StyleModeStack.cs
- ProcessModule.cs
- ItemCheckEvent.cs
- WindowsStatic.cs
- AssemblyFilter.cs
- arabicshape.cs
- TextRunCache.cs
- TimerElapsedEvenArgs.cs
- ObjectMemberMapping.cs
- HtmlFormWrapper.cs
- InternalConfirm.cs
- QilParameter.cs
- VerticalAlignConverter.cs
- TraceData.cs
- WorkflowOwnershipException.cs
- CodeTypeMemberCollection.cs
- FixedSOMElement.cs
- PointValueSerializer.cs
- KoreanCalendar.cs
- DataSource.cs
- ListenerElementsCollection.cs
- SiteMapDataSourceView.cs
- GridViewCellAutomationPeer.cs
- LambdaCompiler.Address.cs
- TextEndOfParagraph.cs
- TokenBasedSetEnumerator.cs
- CodeArrayIndexerExpression.cs
- ImmutablePropertyDescriptorGridEntry.cs
- HttpApplication.cs
- CompositeActivityValidator.cs
- TreeViewAutomationPeer.cs
- ListBase.cs
- BindingListCollectionView.cs
- HasCopySemanticsAttribute.cs
- XmlRootAttribute.cs
- LocalValueEnumerator.cs
- UnionExpr.cs
- X509CertificateInitiatorClientCredential.cs
- InterleavedZipPartStream.cs
- ScrollViewerAutomationPeer.cs
- X509ImageLogo.cs
- OneOfTypeConst.cs
- ChtmlTextWriter.cs
- XamlTypeMapperSchemaContext.cs
- StringStorage.cs
- BroadcastEventHelper.cs