共用方式為


Microsoft.Extensions.Configuration.UserSecrets Namespace

Contains classes and interfaces to load user secrets configuration data.

Classes

PathHelper

Provides paths for user secrets configuration files.

UserSecretsIdAttribute

Represents the user secrets ID.

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.