You should be good to find the relevant code for the development purpose, modify it and use it in your application as these are the sample given by Microsoft. I haven't seen any license conditions as such.
Please read about code samples here and also try providing feedback to them if needed more clarity
https://learn.microsoft.com/en-us/teamblog/code-samples
----------
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav