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
- ApplicationBuildProvider.cs
- ListenerUnsafeNativeMethods.cs
- AssemblyBuilderData.cs
- Events.cs
- SmtpMail.cs
- BrowserCapabilitiesCodeGenerator.cs
- NetCodeGroup.cs
- AnimationTimeline.cs
- StatusBarItem.cs
- AffineTransform3D.cs
- AttributeTable.cs
- ReadOnlyDictionary.cs
- ContainsRowNumberChecker.cs
- CharEntityEncoderFallback.cs
- ButtonBase.cs
- ConnectionConsumerAttribute.cs
- NonceToken.cs
- CompensationToken.cs
- ControlPropertyNameConverter.cs
- MailWriter.cs
- ProxyDataContractResolver.cs
- linebase.cs
- ProfileGroupSettingsCollection.cs
- VirtualPath.cs
- SmiTypedGetterSetter.cs
- GridViewItemAutomationPeer.cs
- BindingRestrictions.cs
- AtlasWeb.Designer.cs
- OracleString.cs
- TreeNodeCollection.cs
- FilterUserControlBase.cs
- CallContext.cs
- AbandonedMutexException.cs
- OleDbDataReader.cs
- GetMemberBinder.cs
- XmlAttributeCollection.cs
- CodeParameterDeclarationExpression.cs
- HandleScope.cs
- PtsHost.cs
- XmlAttributeOverrides.cs
- NumericExpr.cs
- UnicodeEncoding.cs
- ArglessEventHandlerProxy.cs
- securitycriticaldataformultiplegetandset.cs
- PageCache.cs
- ZipIOModeEnforcingStream.cs
- CompiledQuery.cs
- NCryptNative.cs
- SafeMILHandle.cs
- SafeHandles.cs
- IdentityHolder.cs
- HMAC.cs
- PixelFormat.cs
- HttpModuleCollection.cs
- exports.cs
- BindingExpressionBase.cs
- AutomationPatternInfo.cs
- TextBlockAutomationPeer.cs
- GiveFeedbackEvent.cs
- FastEncoder.cs
- PageCatalogPart.cs
- EventDescriptorCollection.cs
- EncoderReplacementFallback.cs
- XomlDesignerLoader.cs
- SslStream.cs
- EditorPartCollection.cs
- SqlConnectionManager.cs
- Pkcs7Recipient.cs
- SafeMILHandleMemoryPressure.cs
- GenericTypeParameterBuilder.cs
- CharAnimationBase.cs
- PageThemeParser.cs
- HandledMouseEvent.cs
- ObjectDataSourceDisposingEventArgs.cs
- Property.cs
- BatchServiceHost.cs
- TreeNodeClickEventArgs.cs
- SingleConverter.cs
- MenuItemBinding.cs
- CrossAppDomainChannel.cs
- KeyTimeConverter.cs
- GridViewCommandEventArgs.cs
- SqlDataSourceRefreshSchemaForm.cs
- MultiViewDesigner.cs
- OutOfMemoryException.cs
- AnimationClockResource.cs
- OpenTypeMethods.cs
- DataSourceBooleanViewSchemaConverter.cs
- TreeIterator.cs
- SqlDataSourceEnumerator.cs
- WebServiceFaultDesigner.cs
- ByeMessage11.cs
- InvalidTimeZoneException.cs
- FileLoadException.cs
- StateMachineAction.cs
- HMACSHA1.cs
- ServerValidateEventArgs.cs
- ConstraintEnumerator.cs
- ErrorEventArgs.cs
- WindowClosedEventArgs.cs