Condividi tramite


ConfigurationElement.Item[String] Proprietà

Definizione

Ottiene o imposta un attributo con il nome specificato.

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

Parametri

attributeName
String

Nome dell'attributo.

Valore della proprietà

Oggetto ConfigurationAttribute con l'oggetto specificato attributeName.

Commenti

È anche possibile ottenere o impostare un valore dell'attributo usando i GetAttributeValue metodi o SetAttributeValue . Per ottenere prestazioni ottimali del sistema, è consigliabile usare questi metodi anziché la Item[] proprietà.

Si applica a