Share via


StringContent Constructor (String, Encoding)

Initializes a new instance of the StringContent class.

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

Syntax

'Declaration
Public Sub New ( _
    content As String, _
    encoding As Encoding _
)
'Usage
Dim content As String 
Dim encoding As Encoding 

Dim instance As New StringContent(content, _
    encoding)
public StringContent(
    string content,
    Encoding encoding
)
public:
StringContent(
    String^ content, 
    Encoding^ encoding
)
new : 
        content:string * 
        encoding:Encoding -> StringContent
public function StringContent(
    content : String, 
    encoding : Encoding
)

Parameters

See Also

Reference

StringContent Class

StringContent Overload

System.Net.Http Namespace