BotConfiguration.FindServiceByNameOrId Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FindServiceByNameOrId(String) |
Find a service by its name or ID. |
FindServiceByNameOrId<T>(String) |
Find a specific type of service by its name or ID. |
FindServiceByNameOrId(String)
Find a service by its name or 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
Parameters
- nameOrId
- String
The name or service ID to find.
Returns
The ConnectedService; or null if the service isn't found.
Applies to
FindServiceByNameOrId<T>(String)
Find a specific type of service by its name or 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
Type Parameters
- T
The service type.
Parameters
- nameOrId
- String
The name or service ID to find.
Returns
T
The ConnectedService; or null if the service isn't found.