locked
Need to Pass Object(instance of custom class) as parameter to a Method Which is invoked by TPL TASK RRS feed

  • Question

  • User-1778011532 posted

    Dear All,

    I would like to pass Object(instance of custom class) as parameter to a Method Which is invoked by TPL TASK. 

    clsRDL objRDL = new clsRDL();

    RDLReportDetails rdlReportDetails = new CLsRDLGeneratePDFReportDetails("/Report1",strOutputFileName,strUserName,strpwd,strDomainName);

    Task.Factory.StartNew(() => objRDL.GenerateReport(rdlReportDetails);

    But it show error message in parameter  "member cannot be accessed with an instance reference qualify it with a type name instead"

    could you guide me on this

    Thanks and Regards

    Palanivelrajan

    Monday, March 24, 2014 5:49 AM

Answers