ChannelEndpointElement::Contract Property

 

Gets or sets the contract that 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.

.NET Framework
Available since 3.0
Return to top
Show: