Class Content
ชื่อพื้นที่: Aspose.Html.Net การประกอบ: Aspose.HTML.dll (25.5.0)
เป็นเกรดพื้นฐานสําหรับหน่วยงาน HTTP และหัวข้อเนื้อหา
[ComVisible(true)]
public abstract class Content : IDisposableInheritance
Derived
ByteArrayContent , MultipartContent , StreamContent
Implements
อนุญาโตตุลาการ
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
Content()
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Html.Net.Content
protected Content()Properties
Headers
รับหัวข้อเนื้อหา HTTP
public ContentHeaders Headers { get; }คุณสมบัติมูลค่า
Methods
Dispose(บอล)
การปล่อยทรัพยากรที่ไม่ได้จัดการและ - ทางเลือก - จัดการ
protected virtual void Dispose(bool disposing)Parameters
disposing bool
“จริง” เพื่อปล่อยทรัพยากรที่จัดการและไม่ได้จัดการ; “ผิด” เพื่อปล่อยทรัพยากรที่ไม่จัดการเท่านั้น
Dispose()
ทําหน้าที่ที่กําหนดโดยการใช้งานที่เกี่ยวข้องกับการปล่อยทรัพยากรที่ไม่ได้รับการจัดการหรือรีไซเคิล
public void Dispose()ReadAsByteArray()
Serialize the HTTP content and return a byte array that represents the content
public byte[] ReadAsByteArray()Returns
byte [ ]
การจัดเรียงไทเทียมที่นําเสนอเนื้อหา
ReadAsStream()
Serialize the HTTP content and return a stream that represents the content
public Stream ReadAsStream()Returns
กระแสเชิงรุนแรงที่นําเสนอเนื้อหา
ReadAsString()
Serialize เนื้อหา HTTP และกลับ string ที่แสดงเนื้อหา
public string ReadAsString()Returns
สายรัดที่นําเสนอเนื้อหา
SerializeToStream(Stream)
ซีรี่ส์เนื้อหาไปยังไหลที่กําหนด
protected abstract void SerializeToStream(Stream stream)Parameters
stream Stream
กระแส