StringContent Constructor (String, Encoding, String)
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, _
mediaType As String _
)
'Usage
Dim content As String
Dim encoding As Encoding
Dim mediaType As String
Dim instance As New StringContent(content, _
encoding, mediaType)
public StringContent(
string content,
Encoding encoding,
string mediaType
)
public:
StringContent(
String^ content,
Encoding^ encoding,
String^ mediaType
)
new :
content:string *
encoding:Encoding *
mediaType:string -> StringContent
public function StringContent(
content : String,
encoding : Encoding,
mediaType : String
)
Parameters
- content
Type: System.String
- encoding
Type: System.Text.Encoding
- mediaType
Type: System.String