docs.unity.cn
    Show / Hide Table of Contents

    Class AuthenticationExtensions

    Authentication extension methods

    Inheritance
    Object
    AuthenticationExtensions
    Namespace: Unity.Services.Authentication
    Syntax
    public static class AuthenticationExtensions

    Methods

    SetProfile(InitializationOptions, String)

    An extension to set the profile to use.

    Declaration
    public static InitializationOptions SetProfile(this InitializationOptions options, string profile)
    Parameters
    Type Name Description
    InitializationOptions options

    The InitializationOptions object to modify

    String profile

    The profile to use

    Returns
    Type Description
    InitializationOptions

    Return options. Fluent interface pattern to make it easier to chain set options operations.

    Exceptions
    Type Condition
    AuthenticationException

    the method will fail with an AuthenticationException if an invalid profile name is passed

    • Throws with ErrorCode ClientInvalidProfile if the profile name is invalid.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, December 7, 2022
    Terms of use