IDataProtectionProvider.Create Method

Returns a new instance of IDataProtection for the provider.

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

Syntax

'Declaration
Function Create ( _
    ParamArray purposes As String() _
) As IDataProtector
'Usage
Dim instance As IDataProtectionProvider 
Dim purposes As String()
Dim returnValue As IDataProtector 

returnValue = instance.Create(purposes)
IDataProtector Create(
    params string[] purposes
)
IDataProtector^ Create(
    ... array<String^>^ purposes
)
abstract Create : 
        purposes:string[] -> IDataProtector
function Create(
    ... purposes : String[]
) : IDataProtector

Parameters

  • purposes
    Type: System.String[]
    Additional entropy used to ensure protected data may only be unprotected for the correct purposes.

Return Value

Type: Microsoft.Owin.Security.DataProtection.IDataProtector
An instance of a data protection service.

See Also

Reference

IDataProtectionProvider Interface

Microsoft.Owin.Security.DataProtection Namespace