DelegatingAuthenticator.TryAuthenticate 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
TryAuthenticate(AuthenticationParameters, Task<IAccessToken>) | |
TryAuthenticate(AuthenticationParameters, CancellationToken, Task<IAccessToken>) |
TryAuthenticate(AuthenticationParameters, Task<IAccessToken>)
public bool TryAuthenticate (Microsoft.Azure.Commands.Common.Authentication.AuthenticationParameters parameters, out System.Threading.Tasks.Task<Microsoft.Azure.Commands.Common.Authentication.IAccessToken> token);
abstract member TryAuthenticate : Microsoft.Azure.Commands.Common.Authentication.AuthenticationParameters * Task -> bool
override this.TryAuthenticate : Microsoft.Azure.Commands.Common.Authentication.AuthenticationParameters * Task -> bool
Public Function TryAuthenticate (parameters As AuthenticationParameters, ByRef token As Task(Of IAccessToken)) As Boolean
Parameters
- parameters
- AuthenticationParameters
- token
- Task<IAccessToken>
Returns
Implements
Applies to
TryAuthenticate(AuthenticationParameters, CancellationToken, Task<IAccessToken>)
public bool TryAuthenticate (Microsoft.Azure.Commands.Common.Authentication.AuthenticationParameters parameters, System.Threading.CancellationToken cancellationToken, out System.Threading.Tasks.Task<Microsoft.Azure.Commands.Common.Authentication.IAccessToken> token);
abstract member TryAuthenticate : Microsoft.Azure.Commands.Common.Authentication.AuthenticationParameters * System.Threading.CancellationToken * Task -> bool
override this.TryAuthenticate : Microsoft.Azure.Commands.Common.Authentication.AuthenticationParameters * System.Threading.CancellationToken * Task -> bool
Public Function TryAuthenticate (parameters As AuthenticationParameters, cancellationToken As CancellationToken, ByRef token As Task(Of IAccessToken)) As Boolean
Parameters
- parameters
- AuthenticationParameters
- cancellationToken
- CancellationToken
- token
- Task<IAccessToken>