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
  • 821
  • 1
  • 13
  • 25

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,196
  • 3
  • 45
  • 64