MicrosoftAccountAuthenticationExtensions.UseMicrosoftAccountAuthentication Method (IAppBuilder, MicrosoftAccountAuthenticationOptions)
Authenticate users using Microsoft Account
Namespace: Owin
Assembly: Microsoft.Owin.Security.MicrosoftAccount (in Microsoft.Owin.Security.MicrosoftAccount.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function UseMicrosoftAccountAuthentication ( _
app As IAppBuilder, _
options As MicrosoftAccountAuthenticationOptions _
) As IAppBuilder
'Usage
Dim app As IAppBuilder
Dim options As MicrosoftAccountAuthenticationOptions
Dim returnValue As IAppBuilder
returnValue = app.UseMicrosoftAccountAuthentication(options)
public static IAppBuilder UseMicrosoftAccountAuthentication(
this IAppBuilder app,
MicrosoftAccountAuthenticationOptions options
)
[ExtensionAttribute]
public:
static IAppBuilder^ UseMicrosoftAccountAuthentication(
IAppBuilder^ app,
MicrosoftAccountAuthenticationOptions^ options
)
static member UseMicrosoftAccountAuthentication :
app:IAppBuilder *
options:MicrosoftAccountAuthenticationOptions -> IAppBuilder
public static function UseMicrosoftAccountAuthentication(
app : IAppBuilder,
options : MicrosoftAccountAuthenticationOptions
) : IAppBuilder
Parameters
- app
Type: IAppBuilder
The IAppBuilder passed to the configuration method
- options
Type: Microsoft.Owin.Security.MicrosoftAccount.MicrosoftAccountAuthenticationOptions
Middleware configuration options
Return Value
Type: IAppBuilder
The updated IAppBuilder
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IAppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).
See Also
Reference
MicrosoftAccountAuthenticationExtensions Class