Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DataProtectionOptions.ApplicationDiscriminator Property

Definition

Namespace:
Microsoft.AspNetCore.DataProtection
Assembly:
Microsoft.AspNetCore.DataProtection.dll
Package:
Microsoft.AspNetCore.DataProtection v1.0.0
Package:
Microsoft.AspNetCore.DataProtection v1.1.0
Package:
Microsoft.AspNetCore.DataProtection v10.0.0
Package:
Microsoft.AspNetCore.DataProtection v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.DataProtection v2.0.0
Package:
Microsoft.AspNetCore.DataProtection v2.1.0
Package:
Microsoft.AspNetCore.DataProtection v2.2.0
Package:
Microsoft.AspNetCore.DataProtection v3.0.3
Package:
Microsoft.AspNetCore.DataProtection v3.1.18
Package:
Microsoft.AspNetCore.DataProtection v5.0.9
Package:
Microsoft.AspNetCore.DataProtection v6.0.6
Package:
Microsoft.AspNetCore.DataProtection v7.0.5
Package:
Microsoft.AspNetCore.DataProtection v8.0.19
Package:
Microsoft.AspNetCore.DataProtection v9.0.8
Source:
DataProtectionOptions.cs
Source:
DataProtectionOptions.cs
Source:
DataProtectionOptions.cs
Source:
DataProtectionOptions.cs
Source:
DataProtectionOptions.cs
Source:
DataProtectionOptions.cs
Source:
DataProtectionOptions.cs
Source:
DataProtectionOptions.cs
Source:
DataProtectionOptions.cs
Source:
DataProtectionOptions.cs

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.

An identifier that uniquely discriminates this application from all other applications on the machine. The discriminator value is implicitly included in all protected payloads generated by the data protection system to isolate multiple logical applications that all happen to be using the same key material.

public:
 property System::String ^ ApplicationDiscriminator { System::String ^ get(); void set(System::String ^ value); };
public string ApplicationDiscriminator { get; set; }
public string? ApplicationDiscriminator { get; set; }
member this.ApplicationDiscriminator : string with get, set
Public Property ApplicationDiscriminator As String

Property Value

Remarks

If two different applications need to share protected payloads, they should ensure that this property is set to the same value across both applications.

Applies to


Feedback

Was this page helpful?