dotnet / dotnet-api-docs

.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
https://docs.microsoft.com/dotnet/api/
Other
719 stars 1.56k forks source link

Example doesn't match page #10191

Open jskeet opened 2 months ago

jskeet commented 2 months ago

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

dotnet-issue-labeler[bot] commented 2 months ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

dotnet-issue-labeler[bot] commented 2 months ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

dotnet-policy-service[bot] commented 2 months ago

Tagging subscribers to this area: @dotnet/wpf-developers