Location: Symbol Reference > Classes > TJwJobObjectSessionList Class > TJwJobObjectSessionList Methods > AssignProcessToJob Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
AssignProcessToJob Method

This is the overview for the AssignProcessToJob method overload.

 
Name 
Description 
 
AssignProcessToJob adds a process to a job using the process' session id to determine which job object must be used. If the job object with the neccessary session id is not available it will be created. For this task the event OnNewJobObject must be set. OnNewJobObject will be called for every job object that must be created. E.g. if the job object list contains no jobs (Count = 0) and a job with session ID 2 is to be assigned, the event OnNewJobObject is called 3 times (session 0,1,2) and the process is assigned to the job object with... more 
 
AssignProcessToJob adds a process to a job using the process' session id to determine which job object must be used. If the job object with the neccessary session id is not available it will be created. For this task the event OnNewJobObject must be set. OnNewJobObject will be called for every job object that must be created. E.g. if the job object list contains no jobs (Count = 0) and a job with session ID 2 is to be assigned, the event OnNewJobObject is called 3 times (session 0,1,2) and the process is assigned to the job object with... more 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!