docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ProjectDescriptor

    This struct contains the identifiers for a project.

    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Cloud.Common
    Assembly: Unity.Cloud.Common.dll
    Syntax
    public readonly struct ProjectDescriptor

    Constructors

    ProjectDescriptor(OrganizationId, ProjectId)

    Creates an instance of the ProjectDescriptor struct.

    Declaration
    public ProjectDescriptor(OrganizationId organizationId, ProjectId projectId)
    Parameters
    Type Name Description
    OrganizationId organizationId

    The project's organization genesis ID.

    ProjectId projectId

    The project's ID.

    Fields

    OrganizationId

    The project's organization ID.

    Declaration
    public readonly OrganizationId OrganizationId
    Field Value
    Type Description
    OrganizationId

    ProjectId

    The project's ID.

    Declaration
    public readonly ProjectId ProjectId
    Field Value
    Type Description
    ProjectId

    Methods

    Equals(object)

    Validate obj is a ProjectDescriptor instance and have the same values as this instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    Compare the values with this instance.

    Returns
    Type Description
    bool

    true if both instance have the same values; false otherwise.

    Overrides
    ValueType.Equals(object)

    Equals(ProjectDescriptor)

    Returns whether two ProjectDescriptor objects are equals.

    Declaration
    public bool Equals(ProjectDescriptor other)
    Parameters
    Type Name Description
    ProjectDescriptor other

    Compare the values with this instance.

    Returns
    Type Description
    bool

    true if both instance have the same values; false otherwise.

    FromJson(string)

    Deserializes the given JSON string into a ProjectDescriptor object.

    Declaration
    public static ProjectDescriptor FromJson(string json)
    Parameters
    Type Name Description
    string json

    A ProjectDescriptor serialized as a JSON string.

    Returns
    Type Description
    ProjectDescriptor

    A ProjectDescriptor.

    GetHashCode()

    Compute a hash code for the object.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    ValueType.GetHashCode()
    Remarks
    • You should not assume that equal hash codes imply object equality.
    • You should never persist or use a hash code outside the application domain in which it was created, because the same object may hash differently across application domains, processes, and platforms.

    ToJson()

    Serializes the ProjectDescriptor into a JSON string.

    Declaration
    public string ToJson()
    Returns
    Type Description
    string

    A ProjectDescriptor serialized as a JSON string.

    Operators

    operator ==(ProjectDescriptor, ProjectDescriptor)

    Get if two ProjectDescriptor represent the same.

    Declaration
    public static bool operator ==(ProjectDescriptor left, ProjectDescriptor right)
    Parameters
    Type Name Description
    ProjectDescriptor left

    Compare with this first instance.

    ProjectDescriptor right

    Compare with this other instance.

    Returns
    Type Description
    bool

    true if both instances represent the same; false otherwise.

    operator !=(ProjectDescriptor, ProjectDescriptor)

    Get if two ProjectDescriptor does not represent the same.

    Declaration
    public static bool operator !=(ProjectDescriptor left, ProjectDescriptor right)
    Parameters
    Type Name Description
    ProjectDescriptor left

    Compare with this first instance.

    ProjectDescriptor right

    Compare with this other instance.

    Returns
    Type Description
    bool

    true if both instances are not the same; false if both instances are the same.

    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)