ConfigurationElement.Item[] Propiedad
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Obtiene o establece una propiedad, atributo o elemento secundario de este objeto ConfigurationElement.
Item[ConfigurationProperty] |
Obtiene o establece una propiedad o atributo de este elemento de configuración. |
Item[String] |
Obtiene o establece una propiedad, un atributo o un elemento secundario de este elemento de configuración. |
Utilice este método para obtener o establecer los valores de un ConfigurationProperty objeto .
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
- Source:
- ConfigurationElement.cs
Obtiene o establece una propiedad o atributo de este elemento de configuración.
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
Parámetros
Propiedad a la que se va a obtener acceso.
Valor de propiedad
Propiedad, atributo o elemento secundario especificado.
Excepciones
prop
es null
o no existe en el elemento.
prop
es de sólo lectura o se bloquea.
Comentarios
Utilice la Item[] propiedad para obtener o establecer los valores de un ConfigurationProperty objeto .
En C#, esta propiedad es el indizador para la clase ConfigurationSectionCollection.
Se aplica a
.NET Framework 4.8.1 e outras versións
Produto | Versións |
---|---|
.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
Obtiene o establece una propiedad, un atributo o un elemento secundario de este elemento de configuración.
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
Parámetros
- propertyName
- String
Nombre del objeto ConfigurationProperty al que se va a obtener acceso.
Valor de propiedad
Propiedad, atributo o elemento secundario especificado.
Excepciones
prop
es de sólo lectura o se bloquea.
Comentarios
Utilice la Item[] propiedad para obtener o establecer los valores de un ConfigurationProperty objeto .
En C#, esta propiedad es el indizador para la clase ConfigurationSectionCollection.
Se aplica a
.NET Framework 4.8.1 e outras versións
Produto | Versións |
---|---|
.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 |
Comentarios de .NET
.NET é un proxecto de código aberto. Selecciona unha ligazón para ofrecer comentarios: