Class MultipartContent
Namespace: Aspose.Html.Net
Assembly: Aspose.HTML.dll (25.2.0)
Represents a multipart/* content.
[ComVisible(true)]
public class MultipartContent : Content, IDisposable, IEnumerable<content>, IEnumerable
Inheritance
object ← Content ← MultipartContent
Derived
Implements
IDisposable, IEnumerable<content>, IEnumerable
Inherited Members
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
MultipartContent()
Create a new instance of the Aspose.Html.Net.MultipartContent class.
public MultipartContent()
MultipartContent(string)
Create a new instance of the Aspose.Html.Net.MultipartContent class with subtype.
public MultipartContent(string subtype)
Parameters
subtype
string
The subtype
MultipartContent(string, string)
Create a new instance of the Aspose.Html.Net.MultipartContent class with subtype and boundary.
public MultipartContent(string subtype, string boundary)
Parameters
subtype
string
The subtype
boundary
string
The boundary
Exceptions
The argument cannot be null or empty string.
Methods
Add(Content)
Add a new content to the Aspose.Html.Net.MultipartContent
public virtual void Add(Content content)
Parameters
content
Content
Content to be added to the Aspose.Html.Net.MultipartContent
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected override void Dispose(bool disposing)
Parameters
disposing
bool
true
to release both managed and unmanaged resources; false
to release only unmanaged resources.
GetEnumerator()
Returns an enumerator that iterates through a collection.
public IEnumerator<content> GetEnumerator()
Returns
IEnumerator<Content>
An System.Collections.IEnumerator object that can be used to iterate through the collection.
SerializeToStream(Stream)
Serializes to stream.
protected override void SerializeToStream(Stream stream)
Parameters
stream
Stream
The stream.
See Also
Content </content>