Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpStringContent.HttpStringContent(String, UnicodeEncoding) constructor

Applies to Windows and Windows Phone

Initializes a new instance of the HttpStringContent class with the specified content and encoding.

Syntax


var httpStringContent = new Windows.Web.Http.HttpStringContent(content, encoding);

Parameters

content

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The content used to initialize the HttpStringContent.

encoding

Type: UnicodeEncoding

The encoding to use for the content.

Remarks

The media type in the Content-Type header for the HttpStringContent created defaults to text/plain.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Http
Windows::Web::Http [C++]

Metadata

Windows.winmd

See also

HttpStringContent
HttpStringContent(String)
HttpStringContent(String, UnicodeEncoding, String)

 

 

Show:
© 2014 Microsoft