Edit

Share via


Scheduler.SetCachedCredentials(String, String) Method

Definition

Sets the credentials for the specified user in the credential cache, so that the job scheduler can use the credentials for submitting jobs.

public void SetCachedCredentials(string userName, string password);
abstract member SetCachedCredentials : string * string -> unit
override this.SetCachedCredentials : string * string -> unit
Public Sub SetCachedCredentials (userName As String, password As String)

Parameters

userName
String

A String object that specifies the name of the user for which you want the set the cached credentials, in the form domain\user. The user name is limited to 80 characters.

password
String

A String object that specifies the password for the user for which you want the set the cached credentials.

Implements

Applies to