[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.WebRequestResult.ResponseContent

ResponseContent Property

ResponseContent

Gets or sets the response content from the web request, if the request was successful. The content is stored as a byte array to preserve the original data format.

Declaration
public byte[] ResponseContent { get; set; }
Public Property ResponseContent As Byte()
Examples
class ContentWebHandler : IWebRequestHandler
{
    public Task<WebRequestResult> GetAsync(string requestUri)
    {
        WebRequestResult result = new WebRequestResult
        {
            ResponseContent = new byte[] { 1, 2, 3 }
        };
        return Task.FromResult(result);
    }
}
IWebRequestHandler handler = new ContentWebHandler();
WebRequestResult result = await handler.GetAsync("https://example.com/data");
byte[] responseContent = result.ResponseContent;