ConfigurationName Property

ServiceContractAttribute.ConfigurationName Property


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 4.5
.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
© 2016 Microsoft