ChannelEndpointElement.Contract Property


Gets or sets the contract that this endpoint is exposing.

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

[ConfigurationPropertyAttribute("contract", DefaultValue = "", 
	Options = ConfigurationPropertyOptions.IsKey)]
[StringValidatorAttribute(MinLength = 0)]
public string Contract { get; set; }

Property Value

Type: System.String

The contract this endpoint is exposing. The assembly must implement the contract type.

.NET Framework
Available since 3.0
Return to top