Share via


IFPCEEReportJob2::SetAsRunOnce method

Applies to: desktop apps only

The SetAsRunOnce method sets the report job to run only once over a specified period of time of a specified type.

Syntax

HRESULT SetAsRunOnce(
  [in]  FpcReportJobPeriodType reportType,
  [in]  FpcReportJobPeriodType reportType,
  [in]  DATE PeriodStart,
  [in]  Date PeriodStart,
  [in]  DATE dPeriodEnd,
  [in]  Date dPeriodEnd
);
FPCReportJob.SetAsRunOnce( _
  ByVal reportType As FpcReportJobPeriodType, _
  ByVal reportType As FpcReportJobPeriodType, _
  ByVal PeriodStart As DATE, _
  ByVal PeriodStart As Date, _
  ByVal dPeriodEnd As DATE, _
  ByVal dPeriodEnd As Date _
)

Parameters

  • reportType [in]

    C++

    Required. Value from the FpcReportJobPeriodType enumerated type that specifies the type of period that the report job covers.

    VB

    Required. Value from the FpcReportJobPeriodType enumerated type that specifies the type of period that the report job covers.

  • PeriodStart [in]

    C++

    Required. DATE value that specifies the date and time in Coordinated Universal Time (UTC) when the period covered by the report job starts.

    VB

    Required. Date value that specifies the date and time in Coordinated Universal Time (UTC) when the period covered by the report job starts.

  • dPeriodEnd [in]

    C++

    Required. DATE value that specifies the date and time in Coordinated Universal Time (UTC) when the period covered by the report job ends.

    VB

    Required. Date value that specifies the date and time in Coordinated Universal Time (UTC) when the period covered by the report job ends.

Return value

C++

This method returns S_OK if the call is successful; otherwise, it returns an error code.

VB

If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

IDL

Msfpccom.idl

DLL

Msfpccom.dll

See also

FPCReportJob

 

 

Build date: 7/12/2010