Get last log - API COM Client Mode

I need help,

How can I get the ID of the last log with COM API Client Mode C#?