the "$pull" operatorを使用する必要があります。ここで
は完全な例(私は任意のカスタムマッピングを必要とせずにあなたの例に沿ったものにするために小文字のプロパティ名の「タグ」を選択しました)です:
public class Test
{
public ObjectId Id { get; set; }
public string[] tags { get; set; }
}
public class Program
{
static void Main(string[] args)
{
var collection = new MongoClient().GetDatabase("test").GetCollection<Test>("Test");
collection.InsertMany(new[] { new Test { tags = new[] { "apple", "orange" } } });
collection.InsertMany(new[] { new Test { tags = new[] { "apple", "banana" } } });
collection.UpdateMany(Builders<Test>.Filter.Empty, Builders<Test>.Update.Pull(test => test.tags, "orange"));
Console.ReadLine();
}
}