MultipartFormDataContent Constructor (String^)

.NET Framework (current version)
 

Creates a new instance of the MultipartFormDataContent class.

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

public:
MultipartFormDataContent(
	String^ boundary
)

Parameters

boundary
Type: System::String^

The boundary string for the multipart form data content.

Exception Condition
ArgumentException

The boundary was null or contains only white space characters.

-or-

The boundary ends with a space character.

ArgumentOutOfRangeException

The length of the boundary was greater than 70.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: