AppBuilderExtensions.CreateDataProtector Method (IAppBuilder, String[])
Creates a data protector.
Namespace: Microsoft.Owin.Security.DataProtection
Assembly: Microsoft.Owin.Security (in Microsoft.Owin.Security.dll)
Syntax
public static IDataProtector CreateDataProtector(
this IAppBuilder app,
params string[] purposes
)
public:
[ExtensionAttribute]
static IDataProtector^ CreateDataProtector(
IAppBuilder^ app,
... array<String^>^ purposes
)
static member CreateDataProtector :
app:IAppBuilder *
[<ParamArrayAttribute>] purposes:string[] -> IDataProtector
<ExtensionAttribute>
Public Shared Function CreateDataProtector (
app As IAppBuilder,
ParamArray purposes As String()
) As IDataProtector
Parameters
app
Type: Owin.IAppBuilderThe application builder.
purposes
Type: System.String[]A list of purposes for creating the data protector.
Return Value
Type: Microsoft.Owin.Security.DataProtection.IDataProtector
The created IDataProtector.
See Also
AppBuilderExtensions Class
Microsoft.Owin.Security.DataProtection Namespace
Return to top