DataProtectionBuilderExtensions.SetApplicationName 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.
Sets the unique name of this application within the data protection system.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ SetApplicationName(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, System::String ^ applicationName);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder SetApplicationName (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, string applicationName);
static member SetApplicationName : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * string -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function SetApplicationName (builder As IDataProtectionBuilder, applicationName As String) As IDataProtectionBuilder
Parameters
- builder
- IDataProtectionBuilder
- applicationName
- String
The application name.
Returns
A reference to the IDataProtectionBuilder after this operation has completed.
Remarks
This API corresponds to setting the ApplicationDiscriminator property to the value of applicationName
.