docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MetadataObject

    Represents a JSON metadata object.

    Inheritance
    object
    MetadataContainer
    MetadataObject
    Implements
    IReadOnlyDictionary<string, MetadataContainer>
    IReadOnlyCollection<KeyValuePair<string, MetadataContainer>>
    IEnumerable<KeyValuePair<string, MetadataContainer>>
    IEnumerable
    Inherited Members
    MetadataContainer.ToNumber()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Cloud.Metadata
    Assembly: solution.dll
    Syntax
    public class MetadataObject : MetadataContainer, IReadOnlyDictionary<string, MetadataContainer>, IReadOnlyCollection<KeyValuePair<string, MetadataContainer>>, IEnumerable<KeyValuePair<string, MetadataContainer>>, IEnumerable

    Properties

    Count

    Gets the number of elements in the collection.

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

    The number of elements in the collection.

    this[string]

    Gets the MetadataContainer with the specified key.

    Declaration
    public override MetadataContainer this[string key] { get; }
    Parameters
    Type Name Description
    string key
    Property Value
    Type Description
    MetadataContainer

    The MetadataContainer with the specified key.

    Overrides
    MetadataContainer.this[string]

    Keys

    Gets an enumerable collection that contains the keys in the read-only dictionary.

    Declaration
    public IEnumerable<string> Keys { get; }
    Property Value
    Type Description
    IEnumerable<string>

    An enumerable collection that contains the keys in the read-only dictionary.

    Values

    Gets an enumerable collection that contains the values in the read-only dictionary.

    Declaration
    public IEnumerable<MetadataContainer> Values { get; }
    Property Value
    Type Description
    IEnumerable<MetadataContainer>

    An enumerable collection that contains the values in the read-only dictionary.

    Methods

    ContainsKey(string)

    Determines whether the JSON object has the specified property name.

    Declaration
    public bool ContainsKey(string key)
    Parameters
    Type Name Description
    string key

    Name of the property.

    Returns
    Type Description
    bool

    true if the JSON object has the specified property name; otherwise, false.

    GetEnumerator()

    Returns an enumerator that can be used to iterate through the collection.

    Declaration
    public IEnumerator<KeyValuePair<string, MetadataContainer>> GetEnumerator()
    Returns
    Type Description
    IEnumerator<KeyValuePair<string, MetadataContainer>>

    A IEnumerator<T> that can be used to iterate through the collection.

    TryGetValue(string, out MetadataContainer)

    Tries to get the MetadataContainer with the specified property name.

    Declaration
    public bool TryGetValue(string key, out MetadataContainer value)
    Parameters
    Type Name Description
    string key

    Name of the property.

    MetadataContainer value

    The value.

    Returns
    Type Description
    bool

    true if a value was successfully retrieved; otherwise, false.

    Implements

    IReadOnlyDictionary<TKey, TValue>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable

    Extension Methods

    MetadataContainerExtension.ToFormattedString(MetadataContainer, int, int)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)