IDataProtectionProvider.Create Method (String[])

 

Returns a new instance of IDataProtection for the provider.

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

Syntax

IDataProtector Create(
    params string[] purposes
)
IDataProtector^ Create(
    ... array<String^>^ purposes
)
abstract Create : 
        [<ParamArrayAttribute>] purposes:string[] -> IDataProtector
Function Create (
    ParamArray purposes As String()
) As 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

IDataProtectionProvider Interface
Microsoft.Owin.Security.DataProtection Namespace

Return to top