ServiceModelConfigurationElement.SetPropertyValueIfNotDefaultValue<T> Method (String, T)

.NET Framework (current version)
 

Sets the property value for the configuration element if the value is not the default value.

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected void SetPropertyValueIfNotDefaultValue<T>(
	string propertyName,
	T value
)

Parameters

propertyName
Type: System.String

The name of the property.

value
Type: T

The property value to be set.

Type Parameters

T

The property value.

.NET Framework
Available since 4.5
Return to top
Show: