ServiceEndpointElement::Contract Property
.NET Framework (current version)
Gets or sets a string that specifies which contract this endpoint is exposing.
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); }
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
Available since 3.0
Show: