ConfigurationConnections.TryGetConnection 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.
Tries to get a connection by name.
public bool TryGetConnection(string name, out Microsoft.Agents.Authentication.IAccessTokenProvider connection);
abstract member TryGetConnection : string * IAccessTokenProvider -> bool
override this.TryGetConnection : string * IAccessTokenProvider -> bool
Public Function TryGetConnection (name As String, ByRef connection As IAccessTokenProvider) As Boolean
Parameters
- name
- String
Name of the connection.
- connection
- IAccessTokenProvider
Access token provider for the named connection.
Returns
Returns true if successful; otherwise false.