Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Abstractions / HttpPostedFileWrapper.cs / 1305376 / HttpPostedFileWrapper.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web { using System; using System.IO; using System.Runtime.CompilerServices; [TypeForwardedFrom("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")] public class HttpPostedFileWrapper : HttpPostedFileBase { private HttpPostedFile _file; public HttpPostedFileWrapper(HttpPostedFile httpPostedFile) { if (httpPostedFile == null) { throw new ArgumentNullException("httpPostedFile"); } _file = httpPostedFile; } public override int ContentLength { get { return _file.ContentLength; } } public override string ContentType { get { return _file.ContentType; } } public override string FileName { get { return _file.FileName; } } public override Stream InputStream { get { return _file.InputStream; } } public override void SaveAs(string filename) { _file.SaveAs(filename); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web { using System; using System.IO; using System.Runtime.CompilerServices; [TypeForwardedFrom("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")] public class HttpPostedFileWrapper : HttpPostedFileBase { private HttpPostedFile _file; public HttpPostedFileWrapper(HttpPostedFile httpPostedFile) { if (httpPostedFile == null) { throw new ArgumentNullException("httpPostedFile"); } _file = httpPostedFile; } public override int ContentLength { get { return _file.ContentLength; } } public override string ContentType { get { return _file.ContentType; } } public override string FileName { get { return _file.FileName; } } public override Stream InputStream { get { return _file.InputStream; } } public override void SaveAs(string filename) { _file.SaveAs(filename); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClickablePoint.cs
- HtmlMeta.cs
- ErrorStyle.cs
- UserPreferenceChangingEventArgs.cs
- CombinedHttpChannel.cs
- DocumentViewer.cs
- StringHandle.cs
- GlobalizationSection.cs
- EntityDataReader.cs
- COM2Enum.cs
- TcpServerChannel.cs
- ListViewEditEventArgs.cs
- UrlMappingCollection.cs
- TemplateEditingFrame.cs
- ADMembershipProvider.cs
- __ComObject.cs
- TcpHostedTransportConfiguration.cs
- DynamicValidatorEventArgs.cs
- ErrorWebPart.cs
- Scripts.cs
- oledbconnectionstring.cs
- ping.cs
- ADMembershipProvider.cs
- DispatchChannelSink.cs
- DurationConverter.cs
- DataRelationPropertyDescriptor.cs
- QueueProcessor.cs
- Utils.cs
- SiteMapNodeItem.cs
- EventLogQuery.cs
- RequiredFieldValidator.cs
- WsatAdminException.cs
- StrongNameMembershipCondition.cs
- FilterableData.cs
- ProcessThread.cs
- ConstraintManager.cs
- ItemsChangedEventArgs.cs
- UInt64Converter.cs
- DynamicResourceExtension.cs
- BooleanAnimationBase.cs
- ToolStripInSituService.cs
- RealizedColumnsBlock.cs
- Rotation3DAnimationBase.cs
- SendActivity.cs
- DecodeHelper.cs
- DataTableReader.cs
- PropertyChangedEventArgs.cs
- DbProviderFactories.cs
- BroadcastEventHelper.cs
- ClientSideProviderDescription.cs
- DefaultObjectMappingItemCollection.cs
- CellNormalizer.cs
- FontWeightConverter.cs
- GridViewDeletedEventArgs.cs
- StorageMappingFragment.cs
- HttpRuntimeSection.cs
- UriTemplateHelpers.cs
- CultureNotFoundException.cs
- WindowsRegion.cs
- XslTransform.cs
- MatrixAnimationUsingKeyFrames.cs
- IChannel.cs
- TimeEnumHelper.cs
- AddressHeaderCollection.cs
- ListBox.cs
- ClientClassGenerator.cs
- SyntaxCheck.cs
- HttpListenerRequest.cs
- XmlFormatExtensionPointAttribute.cs
- ErrorStyle.cs
- ThreadSafeList.cs
- ListViewGroupItemCollection.cs
- SystemColors.cs
- TableTextElementCollectionInternal.cs
- FullTextLine.cs
- Point.cs
- SmiMetaDataProperty.cs
- backend.cs
- HtmlShimManager.cs
- WindowsToolbarAsMenu.cs
- XmlDocumentType.cs
- EncoderBestFitFallback.cs
- DSACryptoServiceProvider.cs
- CancelEventArgs.cs
- ClientRuntimeConfig.cs
- FixedPageStructure.cs
- CellCreator.cs
- CodeCatchClause.cs
- DbConnectionInternal.cs
- ContentControl.cs
- StructuralType.cs
- XmlSerializer.cs
- SingleKeyFrameCollection.cs
- Rfc2898DeriveBytes.cs
- NativeMethods.cs
- SecurityContextSecurityToken.cs
- ColorContextHelper.cs
- PropertyDescriptorComparer.cs
- CollectionExtensions.cs
- SystemColors.cs