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