MockProviderBehavior Class
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.
Put in a xaml page with ClientId https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/Acquiring-tokens-interactively.
public class MockProviderBehavior : Microsoft.Toolkit.Graph.Providers.CommonProviderBehaviorBase
type MockProviderBehavior = class
inherit CommonProviderBehaviorBase
Public Class MockProviderBehavior
Inherits CommonProviderBehaviorBase
- Inheritance
-
Microsoft.Xaml.Interactivity.Behavior<T>BehaviorBase<Windows.UI.Xaml.FrameworkElement>MockProviderBehavior
<Interactivity:Interaction.Behaviors>
<providers:InteractiveProviderBehavior ClientId = "MyClientIdGuid"/>
</Interactivity:Interaction.Behaviors>
Signed |
Identifies the SignedIn dependency property. |
Client |
Gets or sets the Client ID (the unique application (client) ID assigned to your app by Azure AD when the app was registered). (Inherited from CommonProviderBehaviorBase) |
Is |
Gets a value indicating whether this behavior is attached. (Inherited from BehaviorBase<T>) |
Redirect |
Gets or sets the redirect URI (the URI the identity provider will send the security tokens back to). (Inherited from CommonProviderBehaviorBase) |
Scopes |
Gets or sets the list of Scopes (permissions) to request on initial login. (Inherited from CommonProviderBehaviorBase) |
Signed |
Gets or sets a value indicating whether the mock provider is signed-in upon initialization. |
Initialize() |
Initializes the behavior to the associated object. |
On |
Called when the associated object has been loaded. (Inherited from BehaviorBase<T>) |
On |
Called when the associated object has been unloaded. (Inherited from BehaviorBase<T>) |
On |
Called after the behavior is attached to the Microsoft.Xaml.Interactivity.Behavior.AssociatedObject. (Inherited from BehaviorBase<T>) |
On |
Called when the behavior is being detached from its Microsoft.Xaml.Interactivity.Behavior.AssociatedObject. (Inherited from BehaviorBase<T>) |
Uninitialize() |
Uninitializes the behavior from the associated object. (Inherited from BehaviorBase<T>) |
Product | Versions |
---|---|
Windows Community Toolkit | 6.1.1, 7.0.0 |