ServiceModelConfigurationElement.SetPropertyValueIfNotDefaultValue<T>(String, T) 方法

定义

如果值不是默认值,为配置元素设置属性值。Sets the property value for the configuration element if the value is not the default value.

protected:
generic <typename T>
 void SetPropertyValueIfNotDefaultValue(System::String ^ propertyName, T value);
protected void SetPropertyValueIfNotDefaultValue<T> (string propertyName, T value);
member this.SetPropertyValueIfNotDefaultValue : string * 'T -> unit
Protected Sub SetPropertyValueIfNotDefaultValue(Of T) (propertyName As String, value As T)

类型参数

T

属性值。The property value.

参数

propertyName
String

属性的名称。The name of the property.

value
T

待设置的属性值 。The property value to be set.

适用于