Class ResponseMessage

Class ResponseMessage

Namespace: Aspose.Html.Net
Assembly: Aspose.HTML.dll (25.2.0)

Represents a response message.

[ComVisible(true)]
public class ResponseMessage : IDisposable

Inheritance

objectResponseMessage

Implements

IDisposable

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

ResponseMessage(HttpStatusCode)

Initializes a new instance of the Aspose.Html.Net.ResponseMessage class.

public ResponseMessage(HttpStatusCode status)

Parameters

status HttpStatusCode

The status.

Properties

Content

Gets or sets the response content.

public Content Content { get; set; }

Property Value

Content

Cookies

Gets or sets the cookie collection.

public CookieCollection Cookies { get; set; }

Property Value

CookieCollection

Headers

Gets the headers.

public ResponseHeaders Headers { get; }

Property Value

ResponseHeaders

IsSuccess

Gets a value indicating whether this message is success.

public bool IsSuccess { get; }

Property Value

bool

Request

Gets or sets the associated request.

public RequestMessage Request { get; set; }

Property Value

RequestMessage

StatusCode

Gets or sets the status code.

public HttpStatusCode StatusCode { get; set; }

Property Value

HttpStatusCode

Methods

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

See Also

IDisposable