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
- FieldTemplateFactory.cs
- CodeSpit.cs
- RegisteredDisposeScript.cs
- ToolBarButtonDesigner.cs
- PolyLineSegment.cs
- StyleXamlParser.cs
- FixedFlowMap.cs
- TextSelection.cs
- PointUtil.cs
- BaseTemplateParser.cs
- DeadCharTextComposition.cs
- ExtentKey.cs
- DataColumnChangeEvent.cs
- TdsEnums.cs
- BaseResourcesBuildProvider.cs
- SubMenuStyleCollectionEditor.cs
- CorrelationService.cs
- RoleManagerSection.cs
- FtpWebRequest.cs
- ADRoleFactory.cs
- CryptoApi.cs
- PassportIdentity.cs
- Header.cs
- ReadOnlyDictionary.cs
- FactoryGenerator.cs
- CodeDomSerializerException.cs
- XmlSchemaObject.cs
- IndexerNameAttribute.cs
- TransmissionStrategy.cs
- MenuEventArgs.cs
- ReadOnlyHierarchicalDataSource.cs
- LightweightCodeGenerator.cs
- XmlEncodedRawTextWriter.cs
- CdpEqualityComparer.cs
- ColumnMapTranslator.cs
- TextRangeEdit.cs
- ActivityScheduledQuery.cs
- HashCodeCombiner.cs
- XMLDiffLoader.cs
- PageAsyncTaskManager.cs
- HtmlInputText.cs
- SettingsPropertyWrongTypeException.cs
- ClientApiGenerator.cs
- ImageList.cs
- LongAverageAggregationOperator.cs
- ProfilePropertyMetadata.cs
- LocalClientSecuritySettings.cs
- ImpersonationContext.cs
- DataTableNewRowEvent.cs
- DataGridViewComboBoxCell.cs
- Source.cs
- SafeNativeMethods.cs
- SystemInfo.cs
- ListItemParagraph.cs
- StaticExtension.cs
- IdentifierService.cs
- CSharpCodeProvider.cs
- RemoveStoryboard.cs
- DeviceContext.cs
- FrameDimension.cs
- ZipIOExtraField.cs
- Bitmap.cs
- BitmapFrame.cs
- SourceElementsCollection.cs
- PersistChildrenAttribute.cs
- KeyInterop.cs
- InputElement.cs
- EventLogRecord.cs
- BaseTemplateParser.cs
- XmlElement.cs
- DesignerTransaction.cs
- DataBindingList.cs
- RegexBoyerMoore.cs
- hresults.cs
- ContextMenuStrip.cs
- SID.cs
- PathSegment.cs
- ElementInit.cs
- SoapFault.cs
- IResourceProvider.cs
- MetafileHeaderWmf.cs
- EventManager.cs
- SpecialFolderEnumConverter.cs
- SqlProcedureAttribute.cs
- SiteMapNodeCollection.cs
- _OverlappedAsyncResult.cs
- TypeUtil.cs
- SqlHelper.cs
- ScriptDescriptor.cs
- InvalidStoreProtectionKeyException.cs
- DataGridViewRowConverter.cs
- WebRequestModulesSection.cs
- TextServicesHost.cs
- ConnectionConsumerAttribute.cs
- ToolBarButtonClickEvent.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- ManualResetEvent.cs
- HtmlInputButton.cs
- DependencySource.cs
- ImageList.cs