Method ShouldSerializeId ShouldSerializeId() Controls serialisation of the Id property. The ID is omitted in the payload for notification messages. Declaration public bool ShouldSerializeId() Returns Type Description Boolean