Microsoft.Extensions.Configuration.UserSecrets
Provides paths for user secrets configuration files.
Returns the path to the JSON file that stores user secrets.
The user secret ID.
The full path to the secret file.
This method uses the current user profile to locate the secrets
file on disk in a location outside of source control.
Returns the path to the JSON file that stores user secrets or throws exception if not found.
This uses the current user profile to locate the secrets file on disk in a location outside of source control.
The user secret ID.
specifies if an exception should be thrown when no root for user secrets is found
The full path to the secret file.
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 .
Initializes an instance of .
The user secrets ID.
Gets the user secrets ID.
Provides configuration extensions for adding user secrets configuration source.
Adds the user secrets configuration source. Searches the assembly that contains type
for an instance of , which specifies a user secrets ID.
A user secrets ID is unique value used to store and identify a collection of secret configuration values.
The configuration builder.
The type from the assembly to search for an instance of .
The assembly containing does not have .
The configuration builder.
Adds the user secrets configuration source. Searches the assembly that contains type
for an instance of , which specifies a user secrets ID.
A user secrets ID is unique value used to store and identify a collection of secret configuration values.
The configuration builder.
Whether loading secrets is optional. When false, this method may throw.
is false and the assembly containing does not have a valid .
The type from the assembly to search for an instance of .
The configuration builder.
Adds the user secrets configuration source. Searches the assembly that contains type
for an instance of , which specifies a user secrets ID.
A user secrets ID is unique value used to store and identify a collection of secret configuration values.
The configuration builder.
Whether loading secrets is optional. When false, this method may throw.
Whether the configuration should be reloaded if the file changes.
is and the assembly containing does not have a valid .
The type from the assembly to search for an instance of .
The configuration builder.
Adds the user secrets configuration source. This searches for an instance
of , which specifies a user secrets ID.
A user secrets ID is unique value used to store and identify a collection of secret configuration values.
The configuration builder.
The assembly with the .
does not have a valid .
The configuration builder.
Adds the user secrets configuration source. This searches for an instance
of , which specifies a user secrets ID.
A user secrets ID is unique value used to store and identify a collection of secret configuration values.
The configuration builder.
The assembly with the .
Whether loading secrets is optional. When false, this method may throw.
is false and does not have a valid .
The configuration builder.
Adds the user secrets configuration source. This searches for an instance
of , which specifies a user secrets ID.
A user secrets ID is unique value used to store and identify a collection of secret configuration values.
The configuration builder.
The assembly with the .
Whether loading secrets is optional. When false, this method may throw.
Whether the configuration should be reloaded if the file changes.
is false and does not have a valid .
The configuration builder.
Adds the user secrets configuration source with specified user secrets ID.
A user secrets ID is unique value used to store and identify a collection of secret configuration values.
The configuration builder.
The user secrets ID.
The configuration builder.
Adds the user secrets configuration source with specified user secrets ID.
A user secrets ID is unique value used to store and identify a collection of secret configuration values.
The configuration builder.
The user secrets ID.
Whether the configuration should be reloaded if the file changes.
The configuration builder.
Value cannot be null or an empty string.
Invalid character '{0}' found in the user secrets ID at index '{1}'.
Could not find 'UserSecretsIdAttribute' on assembly '{0}'.
Check that the project for '{0}' has set the 'UserSecretsId' build property.
If the 'UserSecretsId' property is already set then add a reference to the Microsoft.Extensions.Configuration.UserSecret ...
Could not determine an appropriate location for storing user secrets. Set the {0} environment variable to a folder where user secrets should be stored.
Attribute used to indicate a source generator should create a function for marshalling
arguments instead of relying on the runtime to generate an equivalent marshalling function at run-time.
This attribute is meaningless if the source generator associated with it is not enabled.
The current built-in source generator only supports C# and only supplies an implementation when
applied to static, partial, non-generic methods.
Initializes a new instance of the .
Name of the library containing the import.
Gets the name of the library containing the import.
Gets or sets the name of the entry point to be called.
Gets or sets how to marshal string arguments to the method.
If this field is set to a value other than ,
must not be specified.
Gets or sets the used to control how string arguments to the method are marshalled.
If this field is specified, must not be specified
or must be set to .
Gets or sets whether the callee sets an error (SetLastError on Windows or errno
on other platforms) before returning from the attributed method.
Specifies how strings should be marshalled for generated p/invokes
Indicates the user is supplying a specific marshaller in .
Use the platform-provided UTF-8 marshaller.
Use the platform-provided UTF-16 marshaller.
Specifies that null is allowed as an input even if the corresponding type disallows it.
Specifies that null is disallowed as an input even if the corresponding type allows it.
Specifies that an output may be null even if the corresponding type disallows it.
Specifies that an output will not be null even if the corresponding type allows it. Specifies that an input argument was not null when the call returns.
Specifies that when a method returns , the parameter may be null even if the corresponding type disallows it.
Initializes the attribute with the specified return value condition.
The return value condition. If the method returns this value, the associated parameter may be null.
Gets the return value condition.
Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it.
Initializes the attribute with the specified return value condition.
The return value condition. If the method returns this value, the associated parameter will not be null.
Gets the return value condition.
Specifies that the output will be non-null if the named parameter is non-null.
Initializes the attribute with the associated parameter name.
The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null.
Gets the associated parameter name.
Applied to a method that will never return under any circumstance.
Specifies that the method will not return if the associated Boolean parameter is passed the specified value.
Initializes the attribute with the specified parameter value.
The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to
the associated parameter matches this value.
Gets the condition parameter value.
Specifies that the method or property will ensure that the listed field and property members have not-null values.
Initializes the attribute with a field or property member.
The field or property member that is promised to be not-null.
Initializes the attribute with the list of field and property members.
The list of field and property members that are promised to be not-null.
Gets field or property member names.
Specifies that the method or property will ensure that the listed field and property members have not-null values when returning with the specified return value condition.
Initializes the attribute with the specified return value condition and a field or property member.
The return value condition. If the method returns this value, the associated field or property member will not be null.
The field or property member that is promised to be not-null.
Initializes the attribute with the specified return value condition and list of field and property members.
The return value condition. If the method returns this value, the associated field and property members will not be null.
The list of field and property members that are promised to be not-null.
Gets the return value condition.
Gets field or property member names.
Provides downlevel polyfills for static methods on Exception-derived types.