Share via


MultipartFileData Constructor

Initializes a new instance of the MultipartFileData class.

Namespace:  System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Syntax

'Declaration
Public Sub New ( _
    headers As HttpContentHeaders, _
    localFileName As String _
)
'Usage
Dim headers As HttpContentHeaders 
Dim localFileName As String 

Dim instance As New MultipartFileData(headers, _
    localFileName)
public MultipartFileData(
    HttpContentHeaders headers,
    string localFileName
)
public:
MultipartFileData(
    HttpContentHeaders^ headers, 
    String^ localFileName
)
new : 
        headers:HttpContentHeaders * 
        localFileName:string -> MultipartFileData
public function MultipartFileData(
    headers : HttpContentHeaders, 
    localFileName : String
)

Parameters

  • headers
    Type: HttpContentHeaders

    The headers of the multipart file data.

  • localFileName
    Type: System.String

    The name of the local file for the multipart file data.

See Also

Reference

MultipartFileData Class

System.Net.Http Namespace