HtmlLoadOptionsWebRequestTimeout Property |
The number of milliseconds to wait before the web request times out. The default value is 100000 milliseconds
(100 seconds).
Namespace:
Aspose.Words
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic int WebRequestTimeout { get; set; }
Public Property WebRequestTimeout As Integer
Get
Set
public:
property int WebRequestTimeout {
int get ();
void set (int value);
}
member WebRequestTimeout : int with get, set
Property Value
Type:
Int32
Remarks
The number of milliseconds that Aspose.Words waits for a response, when loading external resources (images, style
sheets) linked in HTML and MHTML documents.
ExamplesShows how to parse HTML document with conditional comments like "<!--[if gte vml 1]>" and "<![if !vml]>".
HtmlLoadOptions loadOptions = new HtmlLoadOptions();
loadOptions.SupportVml = true;
loadOptions.WebRequestTimeout = 1000;
Document doc = new Document(MyDir + "Conditional comments.htm", loadOptions);
doc.Save(ArtifactsDir + "HtmlLoadOptions.SupportVml.docx");
See Also