ConfigurationElement.Item[] Właściwość

Definicja

Pobiera lub ustawia właściwość, atrybut lub element podrzędny tego ConfigurationElement obiektu.

Przeciążenia

Item[ConfigurationProperty]

Pobiera lub ustawia właściwość lub atrybut tego elementu konfiguracji.

Item[String]

Pobiera lub ustawia właściwość, atrybut lub element podrzędny tego elementu konfiguracji.

Uwagi

Użyj tej metody, aby pobrać lub ustawić wartości ConfigurationProperty obiektu.

Item[ConfigurationProperty]

Pobiera lub ustawia właściwość lub atrybut tego elementu konfiguracji.

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

Parametry

prop
ConfigurationProperty

Właściwość do uzyskania dostępu.

Wartość właściwości

Określona właściwość, atrybut lub element podrzędny.

Wyjątki

prop element jest null lub nie istnieje w elemecie .

prop jest tylko do odczytu lub jest zablokowany.

Uwagi

Item[] Użyj właściwości , aby pobrać lub ustawić wartości ConfigurationProperty obiektu.

W języku C# ta właściwość jest indeksatorem ConfigurationSectionCollection klasy .

Dotyczy

Item[String]

Pobiera lub ustawia właściwość, atrybut lub element podrzędny tego elementu konfiguracji.

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

Parametry

propertyName
String

Nazwa obiektu ConfigurationProperty , do których ma być uzyskiwany dostęp.

Wartość właściwości

Określona właściwość, atrybut lub element podrzędny.

Wyjątki

prop jest tylko do odczytu lub jest zablokowany.

Uwagi

Item[] Użyj właściwości , aby pobrać lub ustawić wartości ConfigurationProperty obiektu.

W języku C# ta właściwość jest indeksatorem ConfigurationSectionCollection klasy .

Dotyczy