question

MGBhadurudeen-1345 avatar image
0 Votes"
MGBhadurudeen-1345 asked ·

I get error message AppRecording not found in namespace Windows.Media!

when used this: using Windows.Media.AppRecording;
Minversion of my UWP project is: 18362

I get error message AppRecording not found in namespace Windows.Media! Where am I doing wrong?

10124-apprecording-not-found.png


windows-uwp
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichardZhang-MSFT avatar image
0 Votes"
RichardZhang-MSFT answered ·

Hello,

Welcome to Microsoft Q&A!

AppRecording is an API namespace in the desktop extension, which is limited to the desktop version of UWP. If you want to use this API, you need to add a desktop SDK extension.

You can add Windows Desktop Extensions for UWP (your sdk version) in your project (You can check this document), after that, you can use the related API.

Thanks.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.