Hi @Anonymous ,
Thank you for posting query in Microsoft Q&A Platform.
As I understand ask here you are trying to get source and destination information of Copy activity in ADF Pipeline using .NET code. Please correct me If I am wrong.
Azure Data factory exposes .NET SDK and also REST API. You can use anyone of them to programmatically talk to ADF service.
In your case you need to consider getting pipeline details there be you can drill to copy activity and see source and sink dataset names.
Below is the link to .NET SDK Function that helps you to get back PipelineResource object.
https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.datafactory.pipelinesoperationsextensions.get?view=azure-dotnet
In below thread similar discussion with more additional links too. Kindly check once.
https://stackoverflow.com/questions/56554782/get-adf-pipeline-json-from-c-sharp
Hope this helps. Please let us know how it goes and let us know if any further queries.
------------
Please consider hitting Accept Answer
. Accepted answers helps community as well.