docs.unity3d.com
    Show / Hide Table of Contents

    Struct ProjectId

    This struct holds information about project identifier.

    Inherited Members
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Cloud.Assets
    Syntax
    public readonly struct ProjectId

    Constructors

    ProjectId(Guid)

    Returns a ProjectId using a Guid.

    Declaration
    public ProjectId(Guid value)
    Parameters
    Type Name Description
    Guid value

    The guid representing the project identifier

    ProjectId(String)

    Returns a ProjectId using a String.

    Declaration
    public ProjectId(string value)
    Parameters
    Type Name Description
    String value

    The string representing the project identifier

    Fields

    None

    Return the value of an identifier representing an invalid project id

    Declaration
    public static readonly ProjectId None
    Field Value
    Type Description
    ProjectId

    Methods

    Equals(Object)

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

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

    Compare the values with this instance.

    Returns
    Type Description
    Boolean

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

    Overrides
    ValueType.Equals(Object)

    Equals(ProjectId)

    Returns whether two ProjectId objects are equals.

    Declaration
    public readonly bool Equals(ProjectId other)
    Parameters
    Type Name Description
    ProjectId other
    Returns
    Type Description
    Boolean

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

    GetHashCode()

    Compute a hash code for the object.

    Declaration
    public override readonly int GetHashCode()
    Returns
    Type Description
    Int32

    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.

    ToString()

    Get the string representation of this ProjectId.

    Declaration
    public override readonly string ToString()
    Returns
    Type Description
    String

    The string result.

    Overrides
    ValueType.ToString()

    Operators

    Equality(ProjectId, ProjectId)

    Get if two ProjectId represent the same.

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

    Compare with this first instance.

    ProjectId right

    Compare with this other instance.

    Returns
    Type Description
    Boolean

    true if both instances represent the same; false otherwise.

    Explicit(ProjectId to String)

    Declaration
    public static explicit operator string (ProjectId sId)
    Parameters
    Type Name Description
    ProjectId sId
    Returns
    Type Description
    String

    Inequality(ProjectId, ProjectId)

    Get if two ProjectId does not represent the same.

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

    Compare with this first instance.

    ProjectId right

    Compare with this other instance.

    Returns
    Type Description
    Boolean

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

    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