A Sandcastle Documented Class Library

# JobController RunJob2 Method

POST /Job/Run2/{id} Runs a job using provided options.

Namespace: Dundas.BI.WebApi.Controllers
Assembly: Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    [HttpPostAttribute]
    [ActionNameAttribute("Run2")]
    public IActionResult RunJob2(
    	Guid id,
    	[FromBodyAttribute] RunJobsOptions options,
    	Guid? sessionId = null
    )

    <HttpPostAttribute>
    <ActionNameAttribute("Run2")>
    Public Function RunJob2 (
    	id As Guid,
    	<FromBodyAttribute> options As RunJobsOptions,
    	Optional sessionId As Guid? = Nothing
    ) As IActionResult

    public:
    [HttpPostAttribute]
    [ActionNameAttribute(L"Run2")]
    IActionResult^ RunJob2(
    	Guid id,
    	[FromBodyAttribute] RunJobsOptions^ options,
    	Nullable<Guid> sessionId = nullptr
    )

    [<HttpPostAttribute>]
    [<ActionNameAttribute("Run2")>]
    member RunJob2 :
            id : Guid *
            [<FromBodyAttribute>] options : RunJobsOptions *
            ?sessionId : Nullable<Guid>
    (* Defaults:
            let _sessionId = defaultArg sessionId null
    *)
    -> IActionResult

#### Parameters

id
  Type: System
  Guid
  ID of the job to run.
options
  Type: Dundas.BI.WebApi.Models
  RunJobsOptions
  An object that carries all needed information about the jobs that need to be run.
sessionId (Optional)
  Type: System
  Nullable
  Guid
  ID of the current session.

#### Return Value

Type: IActionResult
The Int64 ID of the job run, or a status code indicating the problem.
See Also

#### Reference

JobController Class
Dundas.BI.WebApi.Controllers Namespace