Cluster.SetJobCredentials Method
Sets the RunAs credentials for the specified job.
Namespace: Microsoft.ComputeCluster
Assembly: CcpAPI (in ccpapi.dll)
Usage
Syntax
'Declaration
Public Sub SetJobCredentials ( _
jobId As Integer, _
userName As String, _
password As String _
)
public void SetJobCredentials (
int jobId,
string userName,
string password
)
public:
virtual void SetJobCredentials (
int jobId,
String^ userName,
String^ password
) sealed
public final void SetJobCredentials (
int jobId,
String userName,
String password
)
public final function SetJobCredentials (
jobId : int,
userName : String,
password : String
)
Parameters
- jobId
The job identifier. The Cluster.AddJob method returns this value. If you have a job object that has already been added to the cluster, you can access the Job.Id property to get the identifier.
- userName
The name of the RunAs user, in the form domain\username. The user name is limited to 80 Unicode characters.
- password
The user password. The password is limited to 127 Unicode characters. Can be empty.
Remarks
You would call this method after submitting a job to change the credentials that the job uses.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Microsoft Windows Compute Cluster Server 2003, Windows Server 2003, Windows XP
Target Platforms
Microsoft Windows Compute Cluster Server 2003, Windows Server 2003 with Compute Cluster Pack Client Utilities, Windows XP with Compute Cluster Pack Client Utilities
See Also
Reference
Cluster Class
Cluster Members
Microsoft.ComputeCluster Namespace
Cluster.SetCachedCredentials Method
SetJobCredentialsFromCache