ServiceBehaviorAttribute.ConfigurationName Property

Definition

Gets or sets the value used to locate the service element in an application configuration file.

C#
public string ConfigurationName { get; set; }

Property Value

The value to locate in the configuration file. The default value is the fully qualified type name without assembly information.

Exceptions

The value is null.

The value is an empty string.

Remarks

Use this value to specify a particular service in the configuration file.

Applies to

Product Versions
.NET Framework 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