If you mean for a Http request have a look at these:
HttpWebRequest.Credentials Property (System.Net)
WebClient.Credentials Property (System.Net)
If you mean setting the transport level authentication for a web service request there are similar Credentials/ClientCredentials properties for this with the service proxy (inherits SoapHttpClientProtocol or ClientBase(Of TChannel)).
If you mean for a Http request have a look at these:
HttpWebRequest.Credentials Property (System.Net)
WebClient.Credentials Property (System.Net)
If you mean setting the transport level authentication for a web service request there are similar Credentials/ClientCredentials properties for this with the service proxy (inherits SoapHttpClientProtocol or ClientBase(Of TChannel)).
proxy.ClientCredentials.UserName.UserName = "user"
proxy.ClientCredentials.UserName.Password = "pass"
Dim proxy As New localhost.Service
proxy.Credentials = New Net.NetworkCredential("user", "pass")
The NetworkCredential that is associated with the specified URI and authentication type, or, if no credentials are available, a null reference (Nothing in Visual Basic).