0

I saw a line in C# codes:

Image = new BitmapImage(
    new Uri("/MyProgramName;component/Images/a.png", UriKind.Relative));

What does that ";" do in this Uri string?

That a.png is actually under MyProgramName/Images/a.png.

laishiekai
  • 841
  • 1
  • 13
  • 26

1 Answers1

3

It is just a delimeter for one of the variations of WPF Resource URIs. Semicolon does not hold any specific universal meaning for all URIs.

alex
  • 12,464
  • 3
  • 46
  • 67