Method SetOnInsert
SetOnInsert(string, BsonValue)
Sets the value of the named element to the specified value only when an insert occurs as part of an upsert operation (see $setOnInsert).
public UpdateBuilder SetOnInsert(string name, BsonValue value)
Parameters
Returns
- UpdateBuilder
The builder (so method calls can be chained).