Share via


WebImage.GetImageFromRequest Method

Returns an image that has been uploaded using the browser.

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)

Syntax

'Declaration
Public Shared Function GetImageFromRequest ( _
    postedFileName As String _
) As WebImage
'Usage
Dim postedFileName As String 
Dim returnValue As WebImage 

returnValue = WebImage.GetImageFromRequest(postedFileName)
public static WebImage GetImageFromRequest(
    string postedFileName
)
public:
static WebImage^ GetImageFromRequest(
    String^ postedFileName
)
static member GetImageFromRequest : 
        postedFileName:string -> WebImage
public static function GetImageFromRequest(
    postedFileName : String
) : WebImage

Parameters

  • postedFileName
    Type: System.String
    (Optional) The name of the file that has been posted. If no file name is specified, the first file that was uploaded is returned.

Return Value

Type: System.Web.Helpers.WebImage
The image.

See Also

Reference

WebImage Class

System.Web.Helpers Namespace