AcquireTokenWithDeviceCodeParameterBuilder.WithDeviceCodeResultCallback 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.
Sets the Callback delegate so your application can interact with the user to direct them to authenticate (to a specific URL, with a code)
public Microsoft.Identity.Client.AcquireTokenWithDeviceCodeParameterBuilder WithDeviceCodeResultCallback (Func<Microsoft.Identity.Client.DeviceCodeResult,System.Threading.Tasks.Task> deviceCodeResultCallback);
member this.WithDeviceCodeResultCallback : Func<Microsoft.Identity.Client.DeviceCodeResult, System.Threading.Tasks.Task> -> Microsoft.Identity.Client.AcquireTokenWithDeviceCodeParameterBuilder
Public Function WithDeviceCodeResultCallback (deviceCodeResultCallback As Func(Of DeviceCodeResult, Task)) As AcquireTokenWithDeviceCodeParameterBuilder
Parameters
- deviceCodeResultCallback
- Func<DeviceCodeResult,Task>
callback containing information to show the user about how to authenticate and enter the device code.
Returns
The builder to chain the .With methods