UserSecretsIdAttribute Class

Definition

Represents the user secrets ID.

C#
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)]
public class UserSecretsIdAttribute : Attribute
Inheritance
UserSecretsIdAttribute
Attributes

Remarks

In most cases, this attribute is automatically generated during compilation by MSBuild targets included in the UserSecrets NuGet package. These targets use the MSBuild property 'UserSecretsId' to set the value for UserSecretsId.

Constructors

Properties

UserSecretsId

Gets the user secrets ID.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)