This documentation is archived and is not being maintained.

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.


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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0