Search Results for

    Show / Hide Table of Contents

    Class SchemaBuilderBase<T>

    A base class for the schema builders exposed by Realm.

    Inheritance
    object
    SchemaBuilderBase<T>
    ObjectSchema.Builder
    RealmSchema.Builder
    Implements
    IEnumerable<T>
    IEnumerable
    Namespace: Realms.Schema
    Assembly: Realm.dll
    Syntax
    public abstract class SchemaBuilderBase<T> : IEnumerable<T>, IEnumerable
    Type Parameters
    Name Description
    T

    The type of the elements contained in the builder.

    Properties

    | Edit this page View Source

    Count

    Gets the number of elements the builder contains.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    The number of elements in the builder.

    | Edit this page View Source

    this[string]

    Gets or sets an element in the builder by name.

    Declaration
    public T this[string name] { get; set; }
    Parameters
    Type Name Description
    string name

    The name of the element.

    Property Value
    Type Description
    T

    The element with the specified name.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if name is null.

    KeyNotFoundException

    Thrown by the getter if the builder doesn't contain an element with the specified name.

    Methods

    | Edit this page View Source

    Contains(string)

    Checks if the builder contains the provided element by name.

    Declaration
    public bool Contains(string name)
    Parameters
    Type Name Description
    string name

    The name of the element being searched for.

    Returns
    Type Description
    bool

    true if the builder contains the specified item; false otherwise.

    | Edit this page View Source

    Contains(T)

    Checks if the builder contains the provided element.

    Declaration
    public bool Contains(T item)
    Parameters
    Type Name Description
    T item

    The item to check for existence.

    Returns
    Type Description
    bool

    true if the builder contains the specified item; false otherwise.

    | Edit this page View Source

    Remove(string)

    Removes an element from the builder by name.

    Declaration
    public bool Remove(string name)
    Parameters
    Type Name Description
    string name

    The name of the element to remove.

    Returns
    Type Description
    bool

    true if the element was found and removed; false otherwise.

    | Edit this page View Source

    Remove(T)

    Removes an element from the builder.

    Declaration
    public bool Remove(T item)
    Parameters
    Type Name Description
    T item

    The element to remove.

    Returns
    Type Description
    bool

    true if the element was found and removed; false otherwise.

    Implements

    IEnumerable<T>
    IEnumerable
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2020-2024 Realm
    Generated by DocFX