ServiceContractAttribute.ConfigurationName Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

public string ConfigurationName { get; set; }

Property Value

Type: System.String

The name used to locate the service element in an application configuration file. The default is the name of the service implementation class.

Exception Condition

The value is null.


The value is an empty string.

To set the value by which the configuration system locates a contract value in the configuration file, see ConfigurationName.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top