System.Net.ICredentials public interface ICredentials Documentation Code NetworkCredential GetCredential(Uri uri, string authType)