Document.NavigateAsync
NavigateAsync(string, CancellationToken)
Asynchronously loads the document at the specified Uniform Resource Locator (URL) into the current instance.
public Task NavigateAsync(string address, CancellationToken cancellationToken)
| Parameter | Type | Description |
|---|---|---|
| address | String | The document address. |
| cancellationToken | CancellationToken | The cancellation token. |
Return Value
A task that represents the asynchronous operation.
See Also
- class Document
- namespace Aspose.Html.Dom
- assembly Aspose.HTML
NavigateAsync(Url, CancellationToken)
Asynchronously loads the document at the specified Uniform Resource Locator (URL) into the current instance.
public Task NavigateAsync(Url url, CancellationToken cancellationToken)
| Parameter | Type | Description |
|---|---|---|
| url | Url | The document URL. |
| cancellationToken | CancellationToken | The cancellation token. |
Return Value
A task that represents the asynchronous operation.
See Also
- class Url
- class Document
- namespace Aspose.Html.Dom
- assembly Aspose.HTML
NavigateAsync(string, string, CancellationToken)
Asynchronously loads the document from specified content and using baseUri to resolve relative resources.
public Task NavigateAsync(string content, string baseUri, CancellationToken cancellationToken)
| Parameter | Type | Description |
|---|---|---|
| content | String | The document content. |
| baseUri | String | The base URI. |
| cancellationToken | CancellationToken | The cancellation token. |
Return Value
A task that represents the asynchronous operation.
See Also
- class Document
- namespace Aspose.Html.Dom
- assembly Aspose.HTML
NavigateAsync(string, Url, CancellationToken)
Asynchronously loads the document from specified content and using baseUri to resolve relative resources.
public Task NavigateAsync(string content, Url baseUri, CancellationToken cancellationToken)
| Parameter | Type | Description |
|---|---|---|
| content | String | The document content. |
| baseUri | Url | The base URI. |
| cancellationToken | CancellationToken | The cancellation token. |
Return Value
A task that represents the asynchronous operation.
See Also
- class Url
- class Document
- namespace Aspose.Html.Dom
- assembly Aspose.HTML
NavigateAsync(Stream, string, CancellationToken)
Asynchronously loads the document from specified content and using baseUri to resolve relative resources.
public Task NavigateAsync(Stream content, string baseUri, CancellationToken cancellationToken)
| Parameter | Type | Description |
|---|---|---|
| content | Stream | The document content stream. |
| baseUri | String | The base URI. |
| cancellationToken | CancellationToken | The cancellation token. |
Return Value
A task that represents the asynchronous operation.
See Also
- class Document
- namespace Aspose.Html.Dom
- assembly Aspose.HTML
NavigateAsync(Stream, Url, CancellationToken)
Asynchronously loads the document from specified content and using baseUri to resolve relative resources.
public Task NavigateAsync(Stream content, Url baseUri, CancellationToken cancellationToken)
| Parameter | Type | Description |
|---|---|---|
| content | Stream | The document content stream. |
| baseUri | Url | The base URI. |
| cancellationToken | CancellationToken | The cancellation token. |
Return Value
A task that represents the asynchronous operation.
See Also
- class Url
- class Document
- namespace Aspose.Html.Dom
- assembly Aspose.HTML
NavigateAsync(RequestMessage, CancellationToken)
Asynchronously loads the document based on the specified request object.
public Task NavigateAsync(RequestMessage request, CancellationToken cancellationToken)
| Parameter | Type | Description |
|---|---|---|
| request | RequestMessage | The request object. |
| cancellationToken | CancellationToken | The cancellation token. |
Return Value
A task that represents the asynchronous operation.
See Also
- class RequestMessage
- class Document
- namespace Aspose.Html.Dom
- assembly Aspose.HTML