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
- PopupEventArgs.cs
- SchemaObjectWriter.cs
- SimpleBitVector32.cs
- Native.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- VScrollBar.cs
- RegisteredScript.cs
- EncoderExceptionFallback.cs
- HttpHandlersSection.cs
- StringInfo.cs
- HeaderCollection.cs
- ConversionValidationRule.cs
- DrawingCollection.cs
- ActivityCodeDomSerializer.cs
- RC2CryptoServiceProvider.cs
- TargetControlTypeAttribute.cs
- TextRangeEditTables.cs
- XmlTextWriter.cs
- Delegate.cs
- DataGridViewSelectedRowCollection.cs
- InvalidateEvent.cs
- ContextMenu.cs
- TCPClient.cs
- TileBrush.cs
- TemplatePartAttribute.cs
- PrivilegeNotHeldException.cs
- ExtensibleClassFactory.cs
- QilScopedVisitor.cs
- FrameworkContextData.cs
- BitmapSizeOptions.cs
- MultiSelector.cs
- BitmapFrameDecode.cs
- PropertyGridEditorPart.cs
- SkewTransform.cs
- DesignerForm.cs
- _SslSessionsCache.cs
- WsatServiceAddress.cs
- SmiMetaData.cs
- SQLByteStorage.cs
- XmlIlTypeHelper.cs
- SystemWebSectionGroup.cs
- ObjectDesignerDataSourceView.cs
- CacheRequest.cs
- EventlogProvider.cs
- ItemMap.cs
- AdapterSwitches.cs
- SqlTopReducer.cs
- ArrayList.cs
- CellConstant.cs
- IODescriptionAttribute.cs
- ImageUrlEditor.cs
- PersonalizationProviderHelper.cs
- StdValidatorsAndConverters.cs
- ArraySubsetEnumerator.cs
- ProxyWebPartConnectionCollection.cs
- FastEncoder.cs
- WindowsSpinner.cs
- TraceUtility.cs
- AspCompat.cs
- Column.cs
- StringUtil.cs
- ExceptionList.cs
- MemoryStream.cs
- GridViewEditEventArgs.cs
- VSWCFServiceContractGenerator.cs
- UpdateTranslator.cs
- XmlChildEnumerator.cs
- WebZone.cs
- UnicodeEncoding.cs
- ObjectStateManagerMetadata.cs
- WebDescriptionAttribute.cs
- HttpListenerResponse.cs
- DesignTimeTemplateParser.cs
- TableRowGroup.cs
- DefaultDialogButtons.cs
- WebResourceAttribute.cs
- ChannelBinding.cs
- PerformanceCounterPermissionEntryCollection.cs
- StringArrayConverter.cs
- HttpProfileGroupBase.cs
- ParserContext.cs
- OlePropertyStructs.cs
- MasterPageCodeDomTreeGenerator.cs
- ColumnTypeConverter.cs
- ThumbAutomationPeer.cs
- BindingManagerDataErrorEventArgs.cs
- Exceptions.cs
- Axis.cs
- TextSimpleMarkerProperties.cs
- SchemaCollectionCompiler.cs
- RSAPKCS1KeyExchangeFormatter.cs
- WindowsSecurityTokenAuthenticator.cs
- XmlSchemaCompilationSettings.cs
- InternalRelationshipCollection.cs
- XmlTextReader.cs
- XmlAnyAttributeAttribute.cs
- EntityEntry.cs
- DefaultAuthorizationContext.cs
- AdornerHitTestResult.cs
- TextBox.cs