docs.unity3d.com
    Show / Hide Table of Contents

    Class MatchCollection

    Represents 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<InstanceId, MetadataObject>, IReadOnlyCollection<KeyValuePair<InstanceId, MetadataObject>>, IEnumerable<KeyValuePair<InstanceId, MetadataObject>>, IEnumerable

    Properties

    Count

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

    Item[InstanceId]

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

    Keys

    Declaration
    public IEnumerable<InstanceId> Keys { get; }
    Property Value
    Type Description
    IEnumerable<InstanceId>
    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(InstanceId)

    Determines whether the owner ID appears in the match collection.

    Declaration
    public bool ContainsKey(InstanceId key)
    Parameters
    Type Name Description
    InstanceId 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<InstanceId, MetadataObject>> GetEnumerator()
    Returns
    Type Description
    IEnumerator<KeyValuePair<InstanceId, MetadataObject>>

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

    Implements
    IEnumerable<T>.GetEnumerator()

    TryGetValue(InstanceId, out MetadataObject)

    Tries to get the MetadataObject with the specified ownerId.

    Declaration
    public bool TryGetValue(InstanceId key, out MetadataObject value)
    Parameters
    Type Name Description
    InstanceId 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
    Terms of use
    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