StringContent Class
Represents content based on a string.
Inheritance Hierarchy
SystemObject
  Aspose.Html.NetContent
    Aspose.Html.NetByteArrayContent
      Aspose.Html.NetStringContent

Namespace: Aspose.Html.Net
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 21.4
Syntax
public class StringContent : ByteArrayContent

The StringContent type exposes the following members.

Constructors
  NameDescription
Public methodStringContent(String)
Initializes a new instance of the StringContent class.
Public methodStringContent(String, Encoding)
Initializes a new instance of the StringContent class.
Public methodStringContent(String, Encoding, String)
Initializes a new instance of the StringContent class.
Properties
  NameDescription
Public propertyHeaders
Gets the HTTP content headers.
(Inherited from Content.)
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Content.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
(Inherited from Content.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReadAsByteArray
Serialize the HTTP content and return a byte array that represents the content.
(Inherited from Content.)
Public methodReadAsStream
Serialize the HTTP content and return a stream that represents the content.
(Inherited from Content.)
Public methodReadAsString
Serialize the HTTP content and return a string that represents the content.
(Inherited from Content.)
Protected methodSerializeToStream
Serializes to stream.
(Inherited from ByteArrayContent.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also