ConfigurationElement.Item[] Propriété
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit une propriété, un attribut ou un élément enfant de cet objet ConfigurationElement.
Item[ConfigurationProperty] |
Obtient ou définit une propriété ou un attribut de cet élément de configuration. |
Item[String] |
Obtient ou définit une propriété, un attribut ou un élément enfant de cet élément de configuration. |
Utilisez cette méthode pour obtenir ou définir les valeurs d’un ConfigurationProperty objet .
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
Obtient ou définit une propriété ou un attribut de cet élément de configuration.
protected:
property System::Object ^ default[System::Configuration::ConfigurationProperty ^] { System::Object ^ get(System::Configuration::ConfigurationProperty ^ prop); void set(System::Configuration::ConfigurationProperty ^ prop, System::Object ^ value); };
protected public:
property System::Object ^ default[System::Configuration::ConfigurationProperty ^] { System::Object ^ get(System::Configuration::ConfigurationProperty ^ prop); void set(System::Configuration::ConfigurationProperty ^ prop, System::Object ^ value); };
protected object this[System.Configuration.ConfigurationProperty prop] { get; set; }
protected internal object this[System.Configuration.ConfigurationProperty prop] { get; set; }
member this.Item(System.Configuration.ConfigurationProperty) : obj with get, set
Default Protected Property Item(prop As ConfigurationProperty) As Object
Default Protected Friend Property Item(prop As ConfigurationProperty) As Object
Paramètres
Propriété à laquelle accéder.
Valeur de propriété
Propriété, attribut ou élément enfant spécifié.
Exceptions
prop
est null
ou n'existe pas dans l'élément.
prop
est en lecture seule ou verrouillé.
Remarques
Utilisez la Item[] propriété pour obtenir ou définir les valeurs d’un ConfigurationProperty objet .
En C#, cette propriété est l'indexeur correspondant à la classe ConfigurationSectionCollection.
S’applique à
.NET Framework 4.8.1 et autres versions
Produit | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
Obtient ou définit une propriété, un attribut ou un élément enfant de cet élément de configuration.
protected:
property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ propertyName); void set(System::String ^ propertyName, System::Object ^ value); };
protected public:
property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ propertyName); void set(System::String ^ propertyName, System::Object ^ value); };
protected object this[string propertyName] { get; set; }
protected internal object this[string propertyName] { get; set; }
member this.Item(string) : obj with get, set
Default Protected Property Item(propertyName As String) As Object
Default Protected Friend Property Item(propertyName As String) As Object
Paramètres
- propertyName
- String
Nom du ConfigurationProperty auquel accéder.
Valeur de propriété
Propriété, attribut ou élément enfant spécifié.
Exceptions
prop
est en lecture seule ou verrouillé.
Remarques
Utilisez la Item[] propriété pour obtenir ou définir les valeurs d’un ConfigurationProperty objet .
En C#, cette propriété est l'indexeur correspondant à la classe ConfigurationSectionCollection.
S’applique à
.NET Framework 4.8.1 et autres versions
Produit | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires: