Język

OAuthClient.GetSignInResourceWithHttpMessagesAsync Metoda

Definicja

Uzyskaj zasób logowania za pomocą wiadomości HTTP.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.SignInResource>> GetSignInResourceWithHttpMessagesAsync(string state, string codeChallenge = default, string emulatorUrl = default, string finalRedirect = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
member this.GetSignInResourceWithHttpMessagesAsync : string * string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.SignInResource>>
Public Function GetSignInResourceWithHttpMessagesAsync (state As String, Optional codeChallenge As String = Nothing, Optional emulatorUrl As String = Nothing, Optional finalRedirect As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of SignInResource))

Parametry

state
String

Stan.

codeChallenge
String

Wyzwanie kodu.

emulatorUrl
String

URL emulatora.

finalRedirect
String

Ostatnie przekierowanie.

customHeaders
Dictionary<String,List<String>>

Nagłówki, które zostaną dodane do żądania.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Task<Microsoft.Rest.HttpOperationResponse<SignInResource>>

Obiekt odpowiedzi zawierający ciało odpowiedzi oraz nagłówki odpowiedzi.

Wyjątki

Microsoft.Rest.HttpOperationException

Zrzucano, gdy operacja zwracała nieprawidłowy kod statusu.

Microsoft.Rest.SerializationException

Zrzucony, gdy nie mogę odtworzyć odpowiedzi.

Microsoft.Rest.ValidationException

Rzucane, gdy wartość wejściowa nie odpowiada oczekiwanemu typowi danych, zakresowi lub wzorcowi.

Rzucane, gdy wymagany parametr jest null.

Dotyczy