EphemeralDataProtectionProvider.CreateProtector(String) 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.
Creates an IDataProtector given a purpose.
public:
virtual Microsoft::AspNetCore::DataProtection::IDataProtector ^ CreateProtector(System::String ^ purpose);
public Microsoft.AspNetCore.DataProtection.IDataProtector CreateProtector (string purpose);
abstract member CreateProtector : string -> Microsoft.AspNetCore.DataProtection.IDataProtector
override this.CreateProtector : string -> Microsoft.AspNetCore.DataProtection.IDataProtector
Public Function CreateProtector (purpose As String) As IDataProtector
Parameters
- purpose
- String
The purpose to be assigned to the newly-created IDataProtector.
Returns
An IDataProtector tied to the provided purpose.