Share via


UserSecretsIdAttribute Class

Definition

Represents the user secrets ID.

public ref class UserSecretsIdAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)]
public class UserSecretsIdAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)>]
type UserSecretsIdAttribute = class
    inherit Attribute
Public Class UserSecretsIdAttribute
Inherits 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

Name Description
UserSecretsIdAttribute(String)

Initializes an instance of UserSecretsIdAttribute.

Properties

Name Description
UserSecretsId

Gets the user secrets ID.

Applies to