Delen via


ISecureDataFormat<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:
ISecureDataFormat.cs

Protects the specified data.

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

Parameters

data
TData

The value to protect

Returns

The data protected value.

Applies to

Protect(TData, String)

Source:
ISecureDataFormat.cs

Protects the specified data for the specified purpose.

public:
 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
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.

Applies to