DocumentReference::GetDocument Method (Boolean)

 

Synchronously loads and parses the document specified by the Source property location.

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
FixedDocument^ GetDocument(
	bool forceReload
)

Parameters

forceReload
Type: System::Boolean

true to force a new load of the Source document, even if it was previously loaded.

Return Value

Type: System.Windows.Documents::FixedDocument^

The document that was loaded.

If the document has not been loaded previously, GetDocument will load the document regardless if the forceReload parameter is true or false.

If the document was loaded previously and forceReload is specified as false, the document is not reloaded and the previously loaded document is returned.

If forceReload is specified true, then the entire document will be reloaded and reparsed, even if it had already been retrieved previously.

.NET Framework
Available since 3.0
Return to top
Show: