Sets the credentials to use for the request.
- Namespace
- Statiq
.Core - Containing Type
- WebRequest
Syntax
public WebRequest WithCredentials(string userName, string password)
Parameters
Name | Type | Description |
---|---|---|
userName | string | The username to use. |
password | string | The password to use. |
Return Value
Type | Description |
---|---|
WebRequest | The current instance. |