HttpMultipartContent Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
HttpMultipartContent() |
Initializes a new instance of the HttpMultipartContent class. |
HttpMultipartContent(String) |
Initializes a new instance of the HttpMultipartContent class with the specified MIME subtype. |
HttpMultipartContent(String, String) |
Initializes a new instance of the HttpMultipartContent class with the specified MIME subtype and boundary string. |
HttpMultipartContent()
Initializes a new instance of the HttpMultipartContent class.
public:
HttpMultipartContent();
HttpMultipartContent();
public HttpMultipartContent();
function HttpMultipartContent()
Public Sub New ()
See also
Applies to
HttpMultipartContent(String)
Initializes a new instance of the HttpMultipartContent class with the specified MIME subtype.
public:
HttpMultipartContent(Platform::String ^ subtype);
HttpMultipartContent(winrt::hstring const& subtype);
public HttpMultipartContent(string subtype);
function HttpMultipartContent(subtype)
Public Sub New (subtype As String)
Parameters
- subtype
-
String
Platform::String
winrt::hstring
The MIME subtype of the multipart content.
Remarks
Below are the exceptions that this function throws.
E_INVALIDARG
The subtype parameter is null (Nothing in Visual Basic).
See also
Applies to
HttpMultipartContent(String, String)
Initializes a new instance of the HttpMultipartContent class with the specified MIME subtype and boundary string.
public:
HttpMultipartContent(Platform::String ^ subtype, Platform::String ^ boundary);
HttpMultipartContent(winrt::hstring const& subtype, winrt::hstring const& boundary);
public HttpMultipartContent(string subtype, string boundary);
function HttpMultipartContent(subtype, boundary)
Public Sub New (subtype As String, boundary As String)
Parameters
- subtype
-
String
Platform::String
winrt::hstring
The MIME subtype of the multipart content.
- boundary
-
String
Platform::String
winrt::hstring
The boundary string for the multipart content.
Remarks
Below are the exceptions that this function throws.
E_INVALIDARG
The subtype parameter is null (Nothing in Visual Basic).
The boundary parameter is null (Nothing in Visual Basic) or contains only white space characters or the boundary ends with a space character.
The length of the boundary parameter is greater than 70.