AudienceJob.RunAudienceJob Method
The main entry method to run audience jobs.
Namespace: Microsoft.Office.Server.Audience
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Shared Function RunAudienceJob ( _
args As String() _
) As Integer
'Usage
Dim args As String()
Dim returnValue As Integer
returnValue = AudienceJob.RunAudienceJob(args)
public static int RunAudienceJob(
string[] args
)
Parameters
args
Type: []Takes the following four arguments:
ApplicationID
Flag: 1 = start, 0 = stop (required)
Flag: 1 = full, 0 = incremental (optional, default = 0
Audience name (optional; if null or not supplied, all audiences are run)
Return Value
Type: System.Int32
An AudienceJobReturnCode value indicating the status code.