UserSecretsIdAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示用户机密 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
- 继承
- 属性
注解
在大多数情况下,此属性由 UserSecrets NuGet 包中包含的 MSBuild 目标在编译期间自动生成。 这些目标使用 MSBuild 属性“UserSecretsId”设置其值 UserSecretsId。
构造函数
| 名称 | 说明 |
|---|---|
| UserSecretsIdAttribute(String) |
初始化 . 的 UserSecretsIdAttribute实例。 |
属性
| 名称 | 说明 |
|---|---|
| UserSecretsId |
获取用户机密 ID。 |