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: 3.0.0.0 (3.0.0.0)
Syntax
public void SetCredentials(
	BackgroundCopyAuthenticationTarget target,
	BackgroundCopyAuthenticationScheme scheme,
	string userName,
	string password
)

Parameters

target
Type: usis.Net.BitsBackgroundCopyAuthenticationTarget
Identifies whether to use the credentials for a proxy or server authentication request.
scheme
Type: usis.Net.BitsBackgroundCopyAuthenticationScheme
Identifies the scheme to use for authentication (for example, Basic or NTLM).
userName
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.
password
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