docs.unity3d.com
    Show / Hide Table of Contents

    Class MetadataObject

    Represents a Metadata JSON object

    Inheritance
    Object
    MetadataContainer
    MetadataObject
    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
    Syntax
    public class MetadataObject : MetadataContainer, IReadOnlyDictionary<string, MetadataContainer>, IReadOnlyCollection<KeyValuePair<string, MetadataContainer>>, IEnumerable<KeyValuePair<string, MetadataContainer>>, IEnumerable

    Properties

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32
    Implements
    IReadOnlyCollection<T>.Count

    Item[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.Item[String]
    Implements
    IReadOnlyDictionary<TKey,TValue>.Item[TKey]

    Keys

    Declaration
    public IEnumerable<string> Keys { get; }
    Property Value
    Type Description
    IEnumerable<String>
    Implements
    IReadOnlyDictionary<TKey,TValue>.Keys

    Values

    Declaration
    public IEnumerable<MetadataContainer> Values { get; }
    Property Value
    Type Description
    IEnumerable<MetadataContainer>
    Implements
    IReadOnlyDictionary<TKey,TValue>.Values

    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
    Boolean

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

    Implements
    IReadOnlyDictionary<TKey,TValue>.ContainsKey(TKey)

    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.

    Implements
    IEnumerable<T>.GetEnumerator()

    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
    Boolean

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

    Implements
    IReadOnlyDictionary<TKey,TValue>.TryGetValue(TKey, TValue)

    Explicit Interface Implementations

    IEnumerable.GetEnumerator()

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

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    IEnumerator

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

    Implements
    IEnumerable.GetEnumerator()

    Extension Methods

    MetadataContainerExtension.ToFormattedString(MetadataContainer, Int32, Int32)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023