Share via


ISchedulerJob::UserName property

Retrieves or sets the RunAs user for the job.

This property is read/write.

Syntax

HRESULT put_UserName(
  [in]  BSTR name
);

HRESULT get_UserName(
  [out] BSTR *pName
);

Property value

The user name in the form, domain\username.

Error codes

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code. To get a description of the error, access the ISchedulerJob::ErrorMessage property.

Remarks

You do not need to set this property. The RunAs user defaults to the owner of the job if you do not set this property or specify the RunAs user when calling the IScheduler::SubmitJob method.

Requirements

Product

HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities

Type library

Microsoft.Hpc.Scheduler.tlb

See also

ISchedulerJob