Share via


ILookupProtector.Protect(String, String) Method

Definition

Protect the data using the specified key.

public:
 System::String ^ Protect(System::String ^ keyId, System::String ^ data);
public string Protect (string keyId, string data);
public string? Protect (string keyId, string? data);
abstract member Protect : string * string -> string
Public Function Protect (keyId As String, data As String) As String

Parameters

keyId
String

The key to use.

data
String

The data to protect.

Returns

The protected data.

Applies to