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
- SortDescription.cs
- PanelStyle.cs
- dbenumerator.cs
- DetailsViewDeletedEventArgs.cs
- Switch.cs
- AutomationPatternInfo.cs
- OrderedHashRepartitionStream.cs
- DbConnectionInternal.cs
- AdjustableArrowCap.cs
- BinaryFormatterWriter.cs
- ConvertEvent.cs
- ExternalFile.cs
- And.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- SafeFindHandle.cs
- recordstatescratchpad.cs
- NotifyParentPropertyAttribute.cs
- FtpWebResponse.cs
- StrokeRenderer.cs
- DateTimeEditor.cs
- AsyncOperationManager.cs
- Msec.cs
- _ProxyChain.cs
- CatalogPart.cs
- ConfigurationManager.cs
- CalendarDateChangedEventArgs.cs
- DomainConstraint.cs
- RenderTargetBitmap.cs
- StorageTypeMapping.cs
- SerializationFieldInfo.cs
- Span.cs
- DayRenderEvent.cs
- ProcessHostFactoryHelper.cs
- CheckBoxField.cs
- ConfigurationConverterBase.cs
- SmtpTransport.cs
- Rect3DValueSerializer.cs
- TemplateBamlTreeBuilder.cs
- WindowsProgressbar.cs
- Model3DGroup.cs
- NameTable.cs
- NonParentingControl.cs
- InkCanvasFeedbackAdorner.cs
- MD5CryptoServiceProvider.cs
- FlowDocumentView.cs
- MetafileHeaderWmf.cs
- TraceSection.cs
- ServiceModelTimeSpanValidator.cs
- DataServiceResponse.cs
- InvalidOleVariantTypeException.cs
- UiaCoreTypesApi.cs
- OleDbWrapper.cs
- PartialArray.cs
- HitTestDrawingContextWalker.cs
- ProjectionNode.cs
- DynamicRenderer.cs
- StringFreezingAttribute.cs
- PassportAuthenticationEventArgs.cs
- PageBuildProvider.cs
- WebPartActionVerb.cs
- XmlSignatureProperties.cs
- AnnotationComponentChooser.cs
- ObjectTag.cs
- LicenseManager.cs
- BidOverLoads.cs
- DSASignatureDeformatter.cs
- TimelineClockCollection.cs
- BaseHashHelper.cs
- SafeRightsManagementPubHandle.cs
- ScriptManager.cs
- SqlReferenceCollection.cs
- SEHException.cs
- MailWriter.cs
- CalloutQueueItem.cs
- StrokeDescriptor.cs
- EncryptedType.cs
- InvalidComObjectException.cs
- BindingCollection.cs
- AsyncStreamReader.cs
- RequestSecurityTokenSerializer.cs
- ProtocolViolationException.cs
- CodeNamespaceImport.cs
- ToolStripItemClickedEventArgs.cs
- GridViewUpdateEventArgs.cs
- WorkflowTimerService.cs
- GeneralTransformGroup.cs
- TextInfo.cs
- ListControlConvertEventArgs.cs
- SafeRightsManagementHandle.cs
- XmlCountingReader.cs
- Compiler.cs
- ObjectTag.cs
- EntryPointNotFoundException.cs
- RayHitTestParameters.cs
- MemberDescriptor.cs
- CodeDirectionExpression.cs
- ImmComposition.cs
- OleDbDataReader.cs
- ProgressBarRenderer.cs
- ToolStripManager.cs