docs.unity3d.com
    Show / Hide Table of Contents

    Class MatchCollection

    Represent the sets of successful metadata matches found by a query.

    Inheritance
    Object
    MatchCollection
    Inherited Members
    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 MatchCollection : IReadOnlyDictionary<OwnerId, MetadataObject>, IReadOnlyCollection<KeyValuePair<OwnerId, MetadataObject>>, IEnumerable<KeyValuePair<OwnerId, MetadataObject>>, IEnumerable

    Properties

    Count

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

    Item[OwnerId]

    Declaration
    public MetadataObject this[OwnerId key] { get; }
    Parameters
    Type Name Description
    OwnerId key
    Property Value
    Type Description
    MetadataObject
    Implements
    IReadOnlyDictionary<TKey,TValue>.Item[TKey]

    Keys

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

    Values

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

    Methods

    ContainsKey(OwnerId)

    Determines whether the owner id is present in the match collection

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

    The ownerId

    Returns
    Type Description
    Boolean

    true if the owner is present; 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<OwnerId, MetadataObject>> GetEnumerator()
    Returns
    Type Description
    IEnumerator<KeyValuePair<OwnerId, MetadataObject>>

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

    Implements
    IEnumerable<T>.GetEnumerator()

    TryGetValue(OwnerId, out MetadataObject)

    Tries to get the MetadataObject with the specified ownerId.

    Declaration
    public bool TryGetValue(OwnerId key, out MetadataObject value)
    Parameters
    Type Name Description
    OwnerId key

    The ownerId.

    MetadataObject 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()
    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