How to upsert a keyed table with c# API?

How to upsert a keyed table with c# API?