HttpPostedFileExtensionsToUploadedFile Method (HttpPostedFile) |
Returns a wrapper object over
HttpPostedFile implementing
IUploadedFile interface.
Namespace: CMS.Base.UploadExtensionsAssembly: CMS.AspNet.Platform (in CMS.AspNet.Platform.dll) Version: 13.0.131
Syntax public static IUploadedFile ToUploadedFile(
this HttpPostedFile postedFile
)
Parameters
- postedFile
- Type: System.WebHttpPostedFile
Return Value
Type:
IUploadedFileUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
HttpPostedFile. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also