ConfigurationElement.Item[String] Propriété

Définition

Obtient ou définit un attribut portant le nom spécifié.

public:
 property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ attributeName); void set(System::String ^ attributeName, System::Object ^ value); };
public object this[string attributeName] { get; set; }
member this.Item(string) : obj with get, set
Default Public Property Item(attributeName As String) As Object

Paramètres

attributeName
String

Nom de l'attribut.

Valeur de propriété

Objet ConfigurationAttribute qui a le spécifié attributeName.

Remarques

Vous pouvez également obtenir ou définir une valeur d’attribut à l’aide des GetAttributeValue méthodes ou SetAttributeValue . Pour de meilleures performances système, vous devez utiliser ces méthodes plutôt que la Item[] propriété .

S’applique à