Click or drag to resize

BackgroundCopyJobSetCredentials Method

Specifies the credentials to use for a proxy or remote server user authentication request.

Namespace:  usis.Net.Bits
Assembly:  usis.Net.Bits (in usis.Net.Bits.dll) Version: (
public void SetCredentials(
	BackgroundCopyAuthenticationTarget target,
	BackgroundCopyAuthenticationScheme scheme,
	string userName,
	string password


Type: usis.Net.BitsBackgroundCopyAuthenticationTarget
Identifies whether to use the credentials for a proxy or server authentication request.
Type: usis.Net.BitsBackgroundCopyAuthenticationScheme
Identifies the scheme to use for authentication (for example, Basic or NTLM).
Type: SystemString
The user name to authenticate. The user name is limited to 300 characters, not including the null terminator. The format of the user name depends on the authentication scheme requested. For example, for Basic, NTLM, and Negotiate authentication, the user name is of the form DomainName\UserName. For Passport authentication, the user name is an email address.
Type: SystemString
The password in plaintext. The password is limited to 65536 characters, not including the null terminator. The password can be blank. Set it to null if UserName is null. BITS encrypts the password before persisting the job if a network disconnect occurs or the user logs off.
See Also