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
- GenerateHelper.cs
- DesignerHost.cs
- FixedSOMTableCell.cs
- InkCanvas.cs
- MetadataCacheItem.cs
- LineGeometry.cs
- PeerApplicationLaunchInfo.cs
- EventLogReader.cs
- Exceptions.cs
- SmtpException.cs
- HtmlTableCellCollection.cs
- SafeRegistryKey.cs
- ComboBoxItem.cs
- MutexSecurity.cs
- UserControl.cs
- listviewsubitemcollectioneditor.cs
- Timer.cs
- InternalsVisibleToAttribute.cs
- EmissiveMaterial.cs
- XmlIncludeAttribute.cs
- WorkflowIdleElement.cs
- SrgsElementList.cs
- LinkArea.cs
- Size3DValueSerializer.cs
- WebBrowser.cs
- InvalidOperationException.cs
- EventSchemaTraceListener.cs
- Win32.cs
- StaticContext.cs
- ReadContentAsBinaryHelper.cs
- SpellerError.cs
- TypeFieldSchema.cs
- DbProviderFactoriesConfigurationHandler.cs
- SymbolTable.cs
- MD5CryptoServiceProvider.cs
- ScriptResourceInfo.cs
- Graph.cs
- XmlSchemaAttribute.cs
- EventToken.cs
- SchemaObjectWriter.cs
- CompiledRegexRunner.cs
- TableCellAutomationPeer.cs
- Publisher.cs
- GPRECTF.cs
- DrawingContextWalker.cs
- FunctionImportMapping.cs
- QueryCacheKey.cs
- ResourceIDHelper.cs
- Error.cs
- CqlParserHelpers.cs
- Visitors.cs
- DictionaryEntry.cs
- CoordinationService.cs
- ExternalException.cs
- SplineKeyFrames.cs
- SingleKeyFrameCollection.cs
- NumberFormatInfo.cs
- PasswordTextNavigator.cs
- DataGridViewSelectedColumnCollection.cs
- GuidTagList.cs
- ValueChangedEventManager.cs
- StatusBarPanelClickEvent.cs
- SoapIncludeAttribute.cs
- SplitterCancelEvent.cs
- X509CertificateClaimSet.cs
- TransactionFilter.cs
- Queue.cs
- FreezableDefaultValueFactory.cs
- EmptyCollection.cs
- PtsCache.cs
- NamespaceCollection.cs
- WindowsSolidBrush.cs
- WebHttpDispatchOperationSelector.cs
- WindowsMenu.cs
- WebPart.cs
- Scene3D.cs
- OleDbReferenceCollection.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- CustomTokenProvider.cs
- SchemaElementLookUpTableEnumerator.cs
- ObjectSpanRewriter.cs
- DPAPIProtectedConfigurationProvider.cs
- ExtensionSimplifierMarkupObject.cs
- SecurityException.cs
- MemberMaps.cs
- FormDesigner.cs
- DeclarativeCatalogPart.cs
- EndpointAddressAugust2004.cs
- TreeNodeStyle.cs
- DataSvcMapFile.cs
- OleDbRowUpdatingEvent.cs
- ByteKeyFrameCollection.cs
- SchemaImporterExtension.cs
- Point.cs
- LazyInitializer.cs
- ContractAdapter.cs
- HttpCookieCollection.cs
- DrawTreeNodeEventArgs.cs
- DrawingServices.cs
- DataGridViewCellStateChangedEventArgs.cs