Share via


SecureDataFormat<TData>.Protect Method

Definition

Overloads

Protect(TData)

Protects the specified data.

Protect(TData, String)

Protects the specified data for the specified purpose.

Protect(TData)

Source:
SecureDataFormat.cs
Source:
SecureDataFormat.cs
Source:
SecureDataFormat.cs

Protects the specified data.

public:
 virtual System::String ^ Protect(TData data);
public string Protect (TData data);
abstract member Protect : 'Data -> string
override this.Protect : 'Data -> string
Public Function Protect (data As TData) As String

Parameters

data
TData

The value to protect

Returns

The data protected value.

Implements

Applies to

Protect(TData, String)

Source:
SecureDataFormat.cs
Source:
SecureDataFormat.cs
Source:
SecureDataFormat.cs

Protects the specified data for the specified purpose.

public:
 virtual System::String ^ Protect(TData data, System::String ^ purpose);
public string Protect (TData data, string purpose);
public string Protect (TData data, string? purpose);
abstract member Protect : 'Data * string -> string
override this.Protect : 'Data * string -> string
Public Function Protect (data As TData, purpose As String) As String

Parameters

data
TData

The value to protect

purpose
String

The purpose.

Returns

A data protected value.

Implements

Applies to