AppBuilderExtensions.SetDataProtectionProvider Method
Sets a data protection provider.
Namespace: Microsoft.Owin.Security.DataProtection
Assembly: Microsoft.Owin.Security (in Microsoft.Owin.Security.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub SetDataProtectionProvider ( _
app As IAppBuilder, _
dataProtectionProvider As IDataProtectionProvider _
)
'Usage
Dim app As IAppBuilder
Dim dataProtectionProvider As IDataProtectionProvider
app.SetDataProtectionProvider(dataProtectionProvider)
public static void SetDataProtectionProvider(
this IAppBuilder app,
IDataProtectionProvider dataProtectionProvider
)
[ExtensionAttribute]
public:
static void SetDataProtectionProvider(
IAppBuilder^ app,
IDataProtectionProvider^ dataProtectionProvider
)
static member SetDataProtectionProvider :
app:IAppBuilder *
dataProtectionProvider:IDataProtectionProvider -> unit
public static function SetDataProtectionProvider(
app : IAppBuilder,
dataProtectionProvider : IDataProtectionProvider
)
Parameters
- app
Type: IAppBuilder
The application builder.
- dataProtectionProvider
Type: Microsoft.Owin.Security.DataProtection.IDataProtectionProvider
The data protection provider to set.
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).