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
- MailBnfHelper.cs
- RoleGroupCollection.cs
- StylusPointDescription.cs
- CompensateDesigner.cs
- CircleHotSpot.cs
- Vector3DValueSerializer.cs
- ContextStack.cs
- LongMinMaxAggregationOperator.cs
- ServiceInfoCollection.cs
- InfoCardUIAgent.cs
- MsmqUri.cs
- webproxy.cs
- UnsafeNativeMethods.cs
- TdsParserSessionPool.cs
- Debug.cs
- DiscoveryClientReferences.cs
- WebReferencesBuildProvider.cs
- DispatcherTimer.cs
- ZeroOpNode.cs
- FactoryRecord.cs
- AbsoluteQuery.cs
- SqlBooleanMismatchVisitor.cs
- KernelTypeValidation.cs
- RectValueSerializer.cs
- PageRouteHandler.cs
- ContainerParagraph.cs
- updateconfighost.cs
- SafeWaitHandle.cs
- MemoryStream.cs
- SHA256Managed.cs
- SimpleMailWebEventProvider.cs
- VisemeEventArgs.cs
- ApplicationTrust.cs
- Parallel.cs
- RegexCharClass.cs
- ImageListUtils.cs
- BaseCodePageEncoding.cs
- TimeoutException.cs
- IconBitmapDecoder.cs
- InheritanceContextHelper.cs
- StylusButtonEventArgs.cs
- _DomainName.cs
- Solver.cs
- WindowsAuthenticationEventArgs.cs
- FixedSOMTableCell.cs
- AstTree.cs
- DataGridParentRows.cs
- CompiledRegexRunner.cs
- MobileCategoryAttribute.cs
- SystemWebCachingSectionGroup.cs
- RemoteWebConfigurationHostStream.cs
- FormatterConverter.cs
- XmlDataSource.cs
- BulletedListEventArgs.cs
- DiagnosticTrace.cs
- Stylesheet.cs
- DataServiceBehavior.cs
- TextParaClient.cs
- Bidi.cs
- FolderNameEditor.cs
- ProfileEventArgs.cs
- LoginCancelEventArgs.cs
- InternalBase.cs
- QilLiteral.cs
- NativeMethods.cs
- DataServiceExpressionVisitor.cs
- ServiceModelActivity.cs
- BuilderElements.cs
- RichTextBoxConstants.cs
- Point3DConverter.cs
- ArrayTypeMismatchException.cs
- ValueTypeFixupInfo.cs
- XmlAutoDetectWriter.cs
- InkCanvas.cs
- SqlCommandSet.cs
- WSHttpTransportSecurityElement.cs
- NamedPipeTransportBindingElement.cs
- DesignerValidationSummaryAdapter.cs
- X509ChainPolicy.cs
- InterleavedZipPartStream.cs
- EncoderFallback.cs
- EventlogProvider.cs
- MarkupCompilePass1.cs
- ConnectionOrientedTransportElement.cs
- GridViewRowPresenter.cs
- EdmProperty.cs
- Set.cs
- LinkedList.cs
- ManagedIStream.cs
- PersonalizationProvider.cs
- DataGridViewRowCollection.cs
- SchemaConstraints.cs
- GlyphInfoList.cs
- PeerNameRegistration.cs
- MulticastDelegate.cs
- ThousandthOfEmRealDoubles.cs
- EndPoint.cs
- DataStorage.cs
- XComponentModel.cs
- PartialClassGenerationTask.cs