DataProtectionBuilderExtensions.SetApplicationName Metoda

Definice

Nastaví jedinečný název této aplikace v rámci systému ochrany dat.

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

Parametry

applicationName
String

Název aplikace.

Návraty

Odkaz na po IDataProtectionBuilder dokončení této operace.

Poznámky

Toto rozhraní API odpovídá nastavení ApplicationDiscriminator vlastnosti na hodnotu applicationName.

Platí pro