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
- FileUpload.cs
- FixedTextView.cs
- DataGridViewComboBoxEditingControl.cs
- Enum.cs
- ColumnResult.cs
- Hashtable.cs
- ProxySimple.cs
- HotCommands.cs
- RefExpr.cs
- FtpWebRequest.cs
- OperationAbortedException.cs
- StatusBarItem.cs
- XPathScanner.cs
- GenerateHelper.cs
- WebPartConnectionsEventArgs.cs
- TextDecorationLocationValidation.cs
- SourceSwitch.cs
- BuilderInfo.cs
- StronglyTypedResourceBuilder.cs
- SqlDataSourceView.cs
- RequestCacheValidator.cs
- ProtocolImporter.cs
- CellIdBoolean.cs
- AcceleratedTokenProviderState.cs
- DataKey.cs
- DependencyPropertyDescriptor.cs
- PrimitiveSchema.cs
- ServiceDesigner.xaml.cs
- DrawingImage.cs
- ParameterModifier.cs
- HttpResponseInternalWrapper.cs
- CreateUserWizard.cs
- FuncTypeConverter.cs
- LongValidatorAttribute.cs
- RichTextBox.cs
- ControlLocalizer.cs
- HandlerFactoryCache.cs
- PcmConverter.cs
- LiteralControl.cs
- TrustLevelCollection.cs
- DetailsViewPagerRow.cs
- SourceFilter.cs
- UriTemplate.cs
- PersonalizationAdministration.cs
- PerformanceCounters.cs
- ToolboxDataAttribute.cs
- DecryptRequest.cs
- ButtonBase.cs
- GuidTagList.cs
- SpellerInterop.cs
- DbFunctionCommandTree.cs
- GlobalizationSection.cs
- RegexRunner.cs
- CompositeFontParser.cs
- CultureInfo.cs
- AliasGenerator.cs
- TraceSection.cs
- UInt32.cs
- LoginDesigner.cs
- Grant.cs
- BaseCollection.cs
- Span.cs
- FontWeight.cs
- PointConverter.cs
- GridViewPageEventArgs.cs
- PrintController.cs
- ObjectMaterializedEventArgs.cs
- PropertyConverter.cs
- ELinqQueryState.cs
- CollectionEditor.cs
- UdpConstants.cs
- SectionInput.cs
- ACL.cs
- Stroke2.cs
- Menu.cs
- WindowsMenu.cs
- AccessControlList.cs
- SqlParameterCollection.cs
- StateManagedCollection.cs
- DefaultValueConverter.cs
- PeerPresenceInfo.cs
- MetadataException.cs
- DeclarativeCatalogPart.cs
- TreeIterators.cs
- PeerNameRegistration.cs
- XmlDeclaration.cs
- MouseCaptureWithinProperty.cs
- ElementHost.cs
- FontCacheLogic.cs
- ExpressionVisitorHelpers.cs
- OperationAbortedException.cs
- EnumMemberAttribute.cs
- ContractInferenceHelper.cs
- Rijndael.cs
- WebBrowserSiteBase.cs
- Expressions.cs
- FrameworkPropertyMetadata.cs
- Clipboard.cs
- KerberosSecurityTokenProvider.cs
- PropertyDescriptorComparer.cs