Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ServiceBehaviorAttribute::ConfigurationName Property

 

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

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

public:
property String^ ConfigurationName {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

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

Exception Condition
ArgumentNullException

The value is null.

ArgumentOutOfRangeException

The value is an empty string.

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

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft