Compartilhar via


BotConfiguration.FindServiceByNameOrId Método

Definição

Sobrecargas

FindServiceByNameOrId(String)

Localize um serviço por seu nome ou ID.

FindServiceByNameOrId<T>(String)

Localize um tipo específico de serviço por seu nome ou ID.

FindServiceByNameOrId(String)

Localize um serviço por seu nome ou ID.

public Microsoft.Bot.Configuration.ConnectedService FindServiceByNameOrId (string nameOrId);
member this.FindServiceByNameOrId : string -> Microsoft.Bot.Configuration.ConnectedService
Public Function FindServiceByNameOrId (nameOrId As String) As ConnectedService

Parâmetros

nameOrId
String

O nome ou a ID de serviço a ser encontrada.

Retornos

O ConnectedService; ou nulo se o serviço não for encontrado.

Aplica-se a

FindServiceByNameOrId<T>(String)

Localize um tipo específico de serviço por seu nome ou ID.

public T FindServiceByNameOrId<T> (string nameOrId) where T : Microsoft.Bot.Configuration.ConnectedService;
member this.FindServiceByNameOrId : string -> 'T (requires 'T :> Microsoft.Bot.Configuration.ConnectedService)
Public Function FindServiceByNameOrId(Of T As ConnectedService) (nameOrId As String) As T

Parâmetros de tipo

T

O tipo de serviço.

Parâmetros

nameOrId
String

O nome ou a ID de serviço a ser encontrada.

Retornos

T

O ConnectedService; ou nulo se o serviço não for encontrado.

Aplica-se a