Share via


AppBuilderExtensions.GetDataProtectionProvider Method

Retrieves a data protection provider for the application.

Namespace:  Microsoft.Owin.Security.DataProtection
Assembly:  Microsoft.Owin.Security (in Microsoft.Owin.Security.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetDataProtectionProvider ( _
    app As IAppBuilder _
) As IDataProtectionProvider
'Usage
Dim app As IAppBuilder 
Dim returnValue As IDataProtectionProvider 

returnValue = app.GetDataProtectionProvider()
public static IDataProtectionProvider GetDataProtectionProvider(
    this IAppBuilder app
)
[ExtensionAttribute]
public:
static IDataProtectionProvider^ GetDataProtectionProvider(
    IAppBuilder^ app
)
static member GetDataProtectionProvider : 
        app:IAppBuilder -> IDataProtectionProvider
public static function GetDataProtectionProvider(
    app : IAppBuilder
) : IDataProtectionProvider

Parameters

  • app
    Type: IAppBuilder
    The application builder.

Return Value

Type: Microsoft.Owin.Security.DataProtection.IDataProtectionProvider
The IDataProtectionProvider object to get.

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

AppBuilderExtensions Class

Microsoft.Owin.Security.DataProtection Namespace