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
- WindowProviderWrapper.cs
- StorageAssociationTypeMapping.cs
- MemberListBinding.cs
- Aggregates.cs
- XamlDesignerSerializationManager.cs
- CustomErrorsSection.cs
- SearchForVirtualItemEventArgs.cs
- ResXBuildProvider.cs
- AuthStoreRoleProvider.cs
- FrameworkContentElement.cs
- SpecialTypeDataContract.cs
- BindToObject.cs
- panel.cs
- LassoHelper.cs
- TypeValidationEventArgs.cs
- HttpCachePolicy.cs
- HighContrastHelper.cs
- FormViewInsertedEventArgs.cs
- ToolboxDataAttribute.cs
- BookmarkManager.cs
- HttpStreamXmlDictionaryReader.cs
- IgnoreFileBuildProvider.cs
- TypeResolver.cs
- DataTablePropertyDescriptor.cs
- Matrix.cs
- ColorContextHelper.cs
- cache.cs
- OverlappedContext.cs
- CustomWebEventKey.cs
- XmlSchemaAnnotation.cs
- Root.cs
- RequestCachingSection.cs
- IdnMapping.cs
- SubMenuStyleCollectionEditor.cs
- XmlILOptimizerVisitor.cs
- X509RecipientCertificateClientElement.cs
- ParameterCollection.cs
- RectAnimationUsingKeyFrames.cs
- FontNamesConverter.cs
- _HelperAsyncResults.cs
- DataServiceRequestException.cs
- WorkerRequest.cs
- LoginName.cs
- SmtpAuthenticationManager.cs
- FormsAuthenticationUser.cs
- Pen.cs
- PromptEventArgs.cs
- RelationshipNavigation.cs
- MetadataItem_Static.cs
- HtmlForm.cs
- ConditionCollection.cs
- DefaultAuthorizationContext.cs
- AlternateView.cs
- TaskFormBase.cs
- JsonReaderDelegator.cs
- RequiredFieldValidator.cs
- SamlSubjectStatement.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- SchemaImporterExtensionElementCollection.cs
- DataListCommandEventArgs.cs
- Duration.cs
- DBSqlParser.cs
- EditingCommands.cs
- ReadOnlyTernaryTree.cs
- GcHandle.cs
- ReverseComparer.cs
- DynamicValueConverter.cs
- CodeMemberEvent.cs
- PenContext.cs
- BaseCollection.cs
- ECDsa.cs
- WbemException.cs
- SqlAliasesReferenced.cs
- QilSortKey.cs
- AppliedDeviceFiltersEditor.cs
- TableRowGroup.cs
- ChtmlImageAdapter.cs
- Marshal.cs
- PropertyChange.cs
- Int32KeyFrameCollection.cs
- RepeaterItem.cs
- LogicalExpressionEditor.cs
- Frame.cs
- WindowsListViewScroll.cs
- ScrollData.cs
- ComplexObject.cs
- ObjectDataProvider.cs
- ReadWriteObjectLock.cs
- ImmComposition.cs
- HttpFileCollection.cs
- ProxyBuilder.cs
- URLAttribute.cs
- MsiStyleLogWriter.cs
- CodeDirectoryCompiler.cs
- PkcsUtils.cs
- ConvertersCollection.cs
- CodeTypeReference.cs
- Matrix3DConverter.cs
- SqlTrackingQuery.cs
- KeyFrames.cs