Accessing UNC Path through .net core

Is there any way in which.net core web API can access UNC with credentials. I have a service which will be hosted in kubernetes and it requires reading a file from UNC.

Source: StackOverflow