ConfigurationElement.SetPropertyValue Metode

Definisi

Mengatur properti ke nilai yang ditentukan.

protected:
 void SetPropertyValue(System::Configuration::ConfigurationProperty ^ prop, System::Object ^ value, bool ignoreLocks);
protected void SetPropertyValue (System.Configuration.ConfigurationProperty prop, object value, bool ignoreLocks);
member this.SetPropertyValue : System.Configuration.ConfigurationProperty * obj * bool -> unit
Protected Sub SetPropertyValue (prop As ConfigurationProperty, value As Object, ignoreLocks As Boolean)

Parameter

prop
ConfigurationProperty

Properti elemen yang akan diatur.

value
Object

Nilai yang akan ditetapkan ke properti .

ignoreLocks
Boolean

true jika kunci pada properti harus diabaikan; jika tidak, false.

Pengecualian

Terjadi jika elemen bersifat baca-saja atau ignoreLocks tetapi true kunci tidak dapat diabaikan.

Berlaku untuk