IDataProtector.Protect Method

Called to protect user data.

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

Syntax

'Declaration
Function Protect ( _
    userData As Byte() _
) As Byte()
'Usage
Dim instance As IDataProtector 
Dim userData As Byte()
Dim returnValue As Byte()

returnValue = instance.Protect(userData)
byte[] Protect(
    byte[] userData
)
array<unsigned char>^ Protect(
    array<unsigned char>^ userData
)
abstract Protect : 
        userData:byte[] -> byte[] 
function Protect(
    userData : byte[]
) : byte[]

Parameters

  • userData
    Type: System.Byte[]
    The original data that must be protected.

Return Value

Type: System.Byte[]

See Also

Reference

IDataProtector Interface

Microsoft.Owin.Security.DataProtection Namespace