docs.unity.cn
    Show / Hide Table of Contents

    Class IDs

    Maps store specific Product identifiers to one or more store identifiers.

    The name is deliberately terse for use as a collection initializer.

    Inheritance
    Object
    IDs
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Purchasing
    Syntax
    public class IDs : IEnumerable<KeyValuePair<string, string>>, IEnumerable

    Methods

    Add(String, Object[])

    Add a product identifier to a list of store names with non strings such as Enums.

    Declaration
    public void Add(string id, params object[] stores)
    Parameters
    Type Name Description
    String id

    Product identifier.

    Object[] stores

    List of stores by other object, to which we the id will be mapped to.

    Add(String, String[])

    Add a product identifier to a list of store names with string.

    Declaration
    public void Add(string id, params string[] stores)
    Parameters
    Type Name Description
    String id

    Product identifier.

    String[] stores

    List of stores by string, to which we the id will be mapped to.

    GetEnumerator()

    Retrieve an Enumerator with which can be used to iterate through the internal map structure.

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

    Enumerator as a Key/Value pair.

    Implements
    IEnumerable<T>.GetEnumerator()

    Explicit Interface Implementations

    IEnumerable.GetEnumerator()

    Returns an enumerator that iterates through the collection.

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    IEnumerator

    An IEnumerator object that can be used to iterate through the collection.

    Implements
    IEnumerable.GetEnumerator()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 14, 2023