Class StringContent
Navne til: Aspose.Html.Net Sammensætning: Aspose.HTML.dll (25.4.0)
Det repræsenterer indhold baseret på en string.
[ComVisible(true)]
public class StringContent : ByteArrayContent, IDisposable
Inheritance
object ← Content ← ByteArrayContent ← StringContent
Implements
De arvede medlemmer
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)
Det initierer en ny instans af Aspose.Html.Net.StringContent klasse.
public StringContent(string content)
Parameters
content
string
og indholdet.
StringContent(String og kodning)
Det initierer en ny instans af Aspose.Html.Net.StringContent klasse.
public StringContent(string content, Encoding encoding)
Parameters
content
string
og indholdet.
encoding
Encoding
Det er kodningen.
StringContent(String, kodning og string)
Det initierer en ny instans af Aspose.Html.Net.StringContent klasse.
public StringContent(string content, Encoding encoding, string mediaType)
Parameters
content
string
og indholdet.
encoding
Encoding
Det er kodningen.
mediaType
string
Typ af medierne.