Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Server.Client Namespace / WebChannel Class / DownloadData Method / DownloadData(String,IList<NameValuePair<String>>,Nullable<Int32>) Method
Extra headers to add to the request
Optional. The number of seconds to wait for a response to the request.

In This Topic
    DownloadData(String,IList<NameValuePair<String>>,Nullable<Int32>) Method
    In This Topic
    Downloads the resource with the specified URI to a byte array
    Syntax
    'Declaration
     
    
    <AsyncStateMachineAttribute(Gibraltar.Server.Client.WebChannel/d__61)> 
    Public Overloads Function DownloadData( _ 
       ByVal relativeUrl As String, _ 
       ByVal additionalHeaders As IList(Of NameValuePair(Of String)), _ 
       ByVal timeout As Nullable(Of Integer) _ 
    ) As Task(Of Byte())
    [AsyncStateMachine(Gibraltar.Server.Client.WebChannel/d__61)] 
    public Task<byte[]> DownloadData( 
       string relativeUrl, 
       IList<NameValuePair<string>> additionalHeaders, 
       Nullable<int> timeout 
    )

    Parameters

    relativeUrl
    additionalHeaders
    Extra headers to add to the request
    timeout
    Optional. The number of seconds to wait for a response to the request.

    Return Value

    A byte array containing the body of the response from the resource
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also