Share via


DataProtectionBuilderExtensions.SetApplicationName Method

Definition

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

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.

Applies to