When application want to run an analyzer first define a variable named "content". So while programming imagine a variable with name of "content" defined.
This variable have the following methods and properties.
| Type | Name | Data Type | Description |
|---|---|---|---|
| AsHtml | HtmlDocument | Get downloaded content as parsed HTML document. | |
| AsStream | MemoryStream | Get the downloaded content of URL as MemoryStream. | |
| AsString | string | Gets the downloaded content of URL as string. If could not convert to string returns null. | |
| AsXML | XmlDocument | Get the downloaded content of URL as parsed XMLDocument. Returns null if could not parse. | |
| Charset | string | Gets HTTP charset information of downloaded content. | |
| Data | byte[] | Byte array contains all responed data from server | |
| Length | long | Contains number of recieved bytes from HTTP Response of server. | |
| ResponseUrl | string | Response URL from web server. (Sometimes requested URL from server is diffrent from returned URL) | |
| StatusCode | int | HTTP Status code of server response. | |
| Url | string | Requested URL from server. | |
| AddMessage | void | Add new message to current analyzing content. | |
| AddUrl | void | Add new sub URL to current analyzing content. (Sub URLs are URLs used in pages. Links are Images from Sub URLs) | |
| SeekZero | void | Seek Zero point of AsStream property. |
©Copyright Hamed J.I 2010. Hosted on SourceForge