docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ServiceAccountCredentials

    This struct holds information about service account credentials. The expected format is a string composed of the : pair as given by Unity Cloud Service Accounts.

    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Cloud.Identity
    Assembly: Unity.Cloud.Identity.dll
    Syntax
    public struct ServiceAccountCredentials

    Constructors

    ServiceAccountCredentials(string)

    Creates a ServiceAccountCredentials using a string.

    Declaration
    public ServiceAccountCredentials(string value)
    Parameters
    Type Name Description
    string value

    The string representing the service account credentials

    Fields

    None

    Returns the value of an identifier representing an invalid service account credentials

    Declaration
    public static readonly ServiceAccountCredentials None
    Field Value
    Type Description
    ServiceAccountCredentials

    Methods

    Equals(object)

    Validates that obj is a ServiceAccountCredentials instance and that it has the same value 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 instances have the same values; false otherwise.

    Overrides
    ValueType.Equals(object)

    Equals(ServiceAccountCredentials)

    Returns whether two ServiceAccountCredentials objects are equals.

    Declaration
    public bool Equals(ServiceAccountCredentials other)
    Parameters
    Type Name Description
    ServiceAccountCredentials other
    Returns
    Type Description
    bool

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

    GetHashCode()

    Computes 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.

    ToBase64String()

    Declaration
    public string ToBase64String()
    Returns
    Type Description
    string

    ToString()

    Get the string representation of this ServiceAccountCredentials.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    The string result.

    Overrides
    ValueType.ToString()

    Operators

    operator ==(ServiceAccountCredentials, ServiceAccountCredentials)

    Returns whether two ServiceAccountCredentials instances are equal.

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

    First instance.

    ServiceAccountCredentials right

    Second instance.

    Returns
    Type Description
    bool

    true if the instances are equal; false otherwise.

    explicit operator string(ServiceAccountCredentials)

    Explicitly cast a ServiceAccountCredentials to a string

    Declaration
    public static explicit operator string(ServiceAccountCredentials serviceAccountCredentials)
    Parameters
    Type Name Description
    ServiceAccountCredentials serviceAccountCredentials

    Object to cast

    Returns
    Type Description
    string

    The resulting string

    operator !=(ServiceAccountCredentials, ServiceAccountCredentials)

    Returns whether two ServiceAccountCredentials instances are different.

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

    First instance.

    ServiceAccountCredentials right

    Second instance.

    Returns
    Type Description
    bool

    true if the instances are different; false otherwise.

    In This Article
    Back to top
    Copyright © 2025 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)