Επεξεργασία

Κοινή χρήση μέσω


DocumentReference.GetDocument(Boolean) Method

Definition

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

public:
 System::Windows::Documents::FixedDocument ^ GetDocument(bool forceReload);
public System.Windows.Documents.FixedDocument GetDocument (bool forceReload);
member this.GetDocument : bool -> System.Windows.Documents.FixedDocument
Public Function GetDocument (forceReload As Boolean) As FixedDocument

Parameters

forceReload
Boolean

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

Returns

The document that was loaded.

Remarks

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.

Applies to