CommandLineConfigurationProvider Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides configuration key-value pairs that are obtained from the command line.
public ref class CommandLineConfigurationProvider : Microsoft::Extensions::Configuration::ConfigurationProvider
public class CommandLineConfigurationProvider : Microsoft.Extensions.Configuration.ConfigurationProvider
type CommandLineConfigurationProvider = class
inherit ConfigurationProvider
Public Class CommandLineConfigurationProvider
Inherits ConfigurationProvider
- Inheritance
For more information and examples, see Command-line configuration provider.
Command |
Initializes a new instance. |
Args |
Gets the command-line arguments. |
Data |
Gets or sets the configuration key-value pairs for this provider. (Inherited from ConfigurationProvider) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Returns the list of keys that this provider has. (Inherited from ConfigurationProvider) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Returns a IChangeToken that can be used to listen when this provider is reloaded. (Inherited from ConfigurationProvider) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Load() |
Loads the configuration data from the command-line arguments. |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
On |
Triggers the reload change token and creates a new one. (Inherited from ConfigurationProvider) |
Set(String, String) |
Sets a value for a given key. (Inherited from ConfigurationProvider) |
To |
Generates a string representing this provider name and relevant details. (Inherited from ConfigurationProvider) |
Try |
Attempts to find a value with the given key. (Inherited from ConfigurationProvider) |
Produkt | Versjoner |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
.NET-tilbakemelding
.NET er et åpen kilde-prosjekt. Velg en kobling for å gi tilbakemelding: