ISecureDataFormat<TData>.Protect Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Protect(TData) |
Protects the specified |
Protect(TData, String) |
Protects the specified |
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.