Class StringContent
Namespace: Aspose.Html.Net
Assembly: Aspose.HTML.dll (25.2.0)
Represents content based on a string.
[ComVisible(true)]
public class StringContent : ByteArrayContent, IDisposable
Inheritance
object ← Content ← ByteArrayContent ← StringContent
Implements
Inherited Members
ByteArrayContent.SerializeToStream(Stream), Content.SerializeToStream(Stream), Content.ReadAsStream(), Content.ReadAsByteArray(), Content.ReadAsString(), Content.Dispose(bool), Content.Dispose(), Content.Headers, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
StringContent(string)
Initializes a new instance of the Aspose.Html.Net.StringContent class.
public StringContent(string content)
Parameters
content
string
The content.
StringContent(string, Encoding)
Initializes a new instance of the Aspose.Html.Net.StringContent class.
public StringContent(string content, Encoding encoding)
Parameters
content
string
The content.
encoding
Encoding
The encoding.
StringContent(string, Encoding, string)
Initializes a new instance of the Aspose.Html.Net.StringContent class.
public StringContent(string content, Encoding encoding, string mediaType)
Parameters
content
string
The content.
encoding
Encoding
The encoding.
mediaType
string
Type of the media.