BotConfiguration.DisconnectServiceByNameOrId 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
DisconnectServiceByNameOrId(String) |
Remove a service by its name or ID. |
DisconnectServiceByNameOrId<T>(String) |
Remove a specific type of service by its name or ID. |
DisconnectServiceByNameOrId(String)
Remove a service by its name or ID.
public Microsoft.Bot.Configuration.ConnectedService DisconnectServiceByNameOrId (string nameOrId);
member this.DisconnectServiceByNameOrId : string -> Microsoft.Bot.Configuration.ConnectedService
Public Function DisconnectServiceByNameOrId (nameOrId As String) As ConnectedService
Parameters
- nameOrId
- String
The name or service ID.
Returns
The ConnectedService that was found and removed.
Exceptions
No such service was found.
Applies to
DisconnectServiceByNameOrId<T>(String)
Remove a specific type of service by its name or ID.
public T DisconnectServiceByNameOrId<T> (string nameOrId) where T : Microsoft.Bot.Configuration.ConnectedService;
member this.DisconnectServiceByNameOrId : string -> 'T (requires 'T :> Microsoft.Bot.Configuration.ConnectedService)
Public Function DisconnectServiceByNameOrId(Of T As ConnectedService) (nameOrId As String) As T
Type Parameters
- T
The service type.
Parameters
- nameOrId
- String
The name or service ID.
Returns
T
The ConnectedService that was found and removed.
Exceptions
No such service was found.