UserSecretsIdAttribute 类

定义

表示用户机密 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
继承
UserSecretsIdAttribute
属性

注解

在大多数情况下,此属性由 UserSecrets NuGet 包中包含的 MSBuild 目标在编译期间自动生成。 这些目标使用 MSBuild 属性“UserSecretsId”设置其值 UserSecretsId

构造函数

名称 说明
UserSecretsIdAttribute(String)

初始化 . 的 UserSecretsIdAttribute实例。

属性

名称 说明
UserSecretsId

获取用户机密 ID。

适用于