IGeoProcessor2 gp = new GeoProcessorClass(); gp.OverwriteOutput = true; gp.AddToolbox(@"C:\data\ADAmapping\ADA_Tools.tbx"); IVariantArray parameters = new VarArrayClass(); parameters.Add(date); parameters.Add(username); parameters.Add(quarterly); parameters.Add(monthly); parameters.Add(yearly); try { gp.Execute("SnapshotADAData", parameters, null); gp.GetMessages( ??? ); // WHAT IS THE PROPER USE HERE } [...]
Solved! Go to Solution.
Hi there, I have always used getMessage (no 's') with the index of the message to retrieve. Base on some examples, the value passed in is an integer that reflects the message severity you want. Based on the second example, I assume that passing in a null objects will return all messages.
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000424000000
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000102000000