IFsrmReportJob::Task property

Retrieves or sets the name of the report job.

This property is read/write.

Syntax


HRESULT put_Task(
  [in]   BSTR taskName
);

HRESULT get_Task(
  [out]  BSTR taskName
);

Property value

A unique name. The name is case-insensitive. The string is limited to 230 characters.

Error codes

The method returns the following return values.

NameMeaning
S_OK

Success

E_INVALIDARG

The name cannot contain the following characters: [^,\'/"|]+

Remarks

Typically, the name is the same name that you specify when you call the IFsrmReportScheduler::CreateScheduleTask method to create a scheduled task that runs the report job.

Use the task name when calling the IFsrmReportManager::GetReportJob method to retrieve a report job.

Examples

For an example, see Defining a Report Job.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmReports.h

DLL

SrmSvc.dll

IID

IID_IFsrmReportJob is defined as 38e87280-715c-4c7d-a280-ea1651a19fef

See also

IFsrmReportJob

 

 

Show:
© 2014 Microsoft. All rights reserved.