More actions
Nguyenduyan (talk | contribs) Created page with "{{CGscriptClass_Template |Name=<nowiki>CatTaskStatusFailed</nowiki> |Description=<nowiki>Failure report for a cattask</nowiki> |Methods= {{CGscriptMethods_Template|ReturnType=..." |
Nguyenduyan (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}} | {{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}} | ||
}} | }} | ||
=== <span style="color:#DF8621">'''Examples'''</span> === | |||
<source lang="javascript"> | |||
CatTaskScheduleHelper ct = new CatTaskScheduleHelper(); | |||
object e = ct.GetTaskStatusByInstanceId(104896); | |||
print(e.ObjectTypeName);//CatTaskStatusFailed | |||
print(e.Status);//Catglobe.Common.ErrorHandling.Exceptions.RuntimeException: Index was out of range. Must be non-negative and less than the size of the collection. | |||
</source> |
Revision as of 03:30, 13 July 2017
CatTaskStatusFailed
Failure report for a cattask
Methods
- string ToString() - The string representation of the object.
Properties
- string ObjectTypeName { get; } - The name of the type of object.
- string Status { get; } - Error report
- TypeInformation TypeInformation { get; } - Get information about this class.
Examples
CatTaskScheduleHelper ct = new CatTaskScheduleHelper();
object e = ct.GetTaskStatusByInstanceId(104896);
print(e.ObjectTypeName);//CatTaskStatusFailed
print(e.Status);//Catglobe.Common.ErrorHandling.Exceptions.RuntimeException: Index was out of range. Must be non-negative and less than the size of the collection.