This topic has not yet been rated - Rate this topic

WebBrowser.SaveToString Method

Silverlight

Saves the source for the HTML content currently displayed in the WebBrowser as a string.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
public string SaveToString()

Return Value

Type: System.String
The string representation of the source for the currently displayed HTML content.
Exception Condition
SecurityException

The HTML content to be saved is from a cross-domain location.

You can only save HTML from the same domain as the Silverlight application. Attempting to save HTML from a cross-domain location will cause an exception.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ