dotnet / dotnet/dotnet-api-docs
Example doesn't match page
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
### Type of issue
Missing information
### Description
The page for `XpsDocument.CreateXpsDocumentWriter` claims to have a sample for that method: "The following example shows how to use the CreateXpsDocumentWriter method in order to write an XpsDocument"
... but the sample is `WordXmlSerializer.SaveToFile(fileName, flowDocument.ContentStart, flowDocument.ContentEnd)` which appears to be completely irrelevant.
Possibly just some incorrect linking?
### Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.windows.xps.packaging.xpsdocument.createxpsdocumentwriter?view=windowsdesktop-8.0
### Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Windows.Xps.Packaging/XpsDocument.xml
### Document Version Independent Id
dd3aead6-8437-6637-59c4-74234f51956f
### Article author
@dotnet-bot
Contributor guide
Assessment
This issue has not been assessed yet.