ServiceEndpointElement::Contract Property

 

Gets or sets a string that specifies which contract this endpoint is exposing.

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

public:
[ConfigurationPropertyAttribute("contract", DefaultValue = "", 
	Options = ConfigurationPropertyOptions::IsKey)]
[StringValidatorAttribute(MinLength = 0)]
property String^ Contract {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The contract this endpoint is exposing.

The assembly must implement the contract type. If a service implementation implements a single contract type, then this property can be omitted.

.NET Framework
Available since 3.0
Return to top
Show: