MicrosoftDocs / winrt-api

WinRT reference content for developing Microsoft Universal Windows Platform (UWP) apps
Creative Commons Attribution 4.0 International
231 stars 500 forks source link

Please explain method parameter #1975

Open MattSA-01 opened 3 years ago

MattSA-01 commented 3 years ago

[Enter feedback here] Can someone please explain the parameter type in the above constructor? Is it simply a Windows::Foundation::Uri object? Is it an address to a const Windows::Foundation::Uri object? I have been having a lot of trouble declaring a BitmapImage object in UWP C++/WinRT app. I have tried BitmapImage(Uri) constructor, where Uri is an Uri object. I think I was using the BitmapImage constructor for .NET, and looking at this constructor, can't determine what I should be sending as a parameter.

Thanks, MattSA


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

JaiganeshKumaran commented 3 years ago

Windows::Foundation::Uri should be the parameter for BitmapImage's constructor