DefaultProtectedData.Protect Method
.NET Framework 4
Namespace: Microsoft.AspNet.SignalR.Infrastructure
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
Syntax
'Declaration
Public Function Protect ( _
data As String, _
purpose As String _
) As String
'Usage
Dim instance As DefaultProtectedData
Dim data As String
Dim purpose As String
Dim returnValue As String
returnValue = instance.Protect(data, purpose)
public string Protect(
string data,
string purpose
)
public:
virtual String^ Protect(
String^ data,
String^ purpose
) sealed
abstract Protect :
data:string *
purpose:string -> string
override Protect :
data:string *
purpose:string -> string
public final function Protect(
data : String,
purpose : String
) : String
Parameters
- data
Type: System.String
- purpose
Type: System.String
Return Value
Type: System.String
Returns String.
Implements
IProtectedData.Protect(String, String)