MongoDB.Bson.Serialization.Conventions.ConventionRegistry.Remove C# (CSharp) Méthode

Remove() public static méthode

Removes the conventions specified by the given name.
Removing a convention allows the removal of the special __defaults__ conventions and the __attributes__ conventions for those who want to completely customize the experience.
public static Remove ( string name ) : void
name string The name.
Résultat void
        public static void Remove(string name)
        {
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }

            lock (__lock)
            {
                __conventionPacks.RemoveAll(x => x.Name == name);
            }
        }