Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Cache / MemoryResponseElement.cs / 1305376 / MemoryResponseElement.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 MemoryResponseElement: ResponseElement { private byte[] _buffer; private long _length; public byte[] Buffer { get { return _buffer; } } public long Length { get { return _length; } } private MemoryResponseElement() { } // hide default constructor public MemoryResponseElement(byte[] buffer, long length) { if (buffer == null) throw new ArgumentNullException("buffer"); if (length < 0 || length > buffer.Length) throw new ArgumentOutOfRangeException("length"); _buffer = buffer; _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 MemoryResponseElement: ResponseElement { private byte[] _buffer; private long _length; public byte[] Buffer { get { return _buffer; } } public long Length { get { return _length; } } private MemoryResponseElement() { } // hide default constructor public MemoryResponseElement(byte[] buffer, long length) { if (buffer == null) throw new ArgumentNullException("buffer"); if (length < 0 || length > buffer.Length) throw new ArgumentOutOfRangeException("length"); _buffer = buffer; _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
- Profiler.cs
- TreeNode.cs
- XPathNavigator.cs
- WebPartConnectionsConfigureVerb.cs
- formatter.cs
- MethodToken.cs
- ProfessionalColorTable.cs
- PagesSection.cs
- CSharpCodeProvider.cs
- WebPartVerbsEventArgs.cs
- ImageKeyConverter.cs
- TwoPhaseCommit.cs
- MediaTimeline.cs
- DebugInfo.cs
- WindowsButton.cs
- HttpFileCollection.cs
- WhitespaceRule.cs
- GC.cs
- LogWriteRestartAreaState.cs
- TableColumnCollectionInternal.cs
- SqlDataSourceSummaryPanel.cs
- TypeConverter.cs
- UTF32Encoding.cs
- ChannelManager.cs
- TableSectionStyle.cs
- _BufferOffsetSize.cs
- ImageDrawing.cs
- SmtpReplyReaderFactory.cs
- KerberosSecurityTokenAuthenticator.cs
- InvokeWebService.cs
- HtmlControlPersistable.cs
- SQLMoneyStorage.cs
- RegionInfo.cs
- PropertyPushdownHelper.cs
- linebase.cs
- MsmqIntegrationBinding.cs
- UpdatePanelControlTrigger.cs
- EditableRegion.cs
- Html32TextWriter.cs
- DataSetMappper.cs
- RTLAwareMessageBox.cs
- PointAnimationBase.cs
- AssemblyNameUtility.cs
- DoubleStorage.cs
- WebControlAdapter.cs
- Qualifier.cs
- MembershipPasswordException.cs
- ExpressionBindingCollection.cs
- FloaterBaseParaClient.cs
- RegisteredArrayDeclaration.cs
- OutputCacheSection.cs
- CodeTypeParameterCollection.cs
- WindowsEditBox.cs
- ErrorCodes.cs
- TextBoxBase.cs
- WindowsNonControl.cs
- SurrogateEncoder.cs
- DataSourceView.cs
- Fx.cs
- FaultPropagationRecord.cs
- SecurityException.cs
- XAMLParseException.cs
- ValueType.cs
- tibetanshape.cs
- FontSource.cs
- AuthenticatingEventArgs.cs
- GridViewHeaderRowPresenter.cs
- IntPtr.cs
- PolyLineSegment.cs
- PixelShader.cs
- PolicyValidationException.cs
- DynamicDataExtensions.cs
- DateTimeFormatInfoScanner.cs
- HttpHandlersSection.cs
- GridItemPattern.cs
- ToolStripDropDownClosedEventArgs.cs
- HostProtectionPermission.cs
- PolyLineSegmentFigureLogic.cs
- PointLightBase.cs
- AccessViolationException.cs
- UnsafeNativeMethods.cs
- PackageFilter.cs
- ParserHooks.cs
- DeobfuscatingStream.cs
- MenuStrip.cs
- HandlerBase.cs
- ISCIIEncoding.cs
- SelectionPattern.cs
- X509CertificateCollection.cs
- IsolationInterop.cs
- DbgUtil.cs
- DbCommandTree.cs
- DataSourceNameHandler.cs
- sitestring.cs
- iisPickupDirectory.cs
- MissingFieldException.cs
- ScriptControlManager.cs
- LoginStatusDesigner.cs
- SerializationFieldInfo.cs
- ManipulationDevice.cs