mtkachenko mtkachenko - 1 year ago 119
C# Question

What purposes should I use class StringContent for?

There is StringContent class in System.Net.Http namespace. What purposes should I use class StringContent for?

Answer Source

It provides HTTP content based on a string.

Example:

Adding the content on HTTPResponseMessage Object

response.Content = new StringContent("Place response text here");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download