ServiceEndpointElement.Contract ServiceEndpointElement.Contract ServiceEndpointElement.Contract ServiceEndpointElement.Contract Property

Definition

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

public:
 property System::String ^ Contract { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("contract", DefaultValue=Mono.Cecil.CustomAttributeArgument, Options=System.Configuration.ConfigurationPropertyOptions.IsKey)]
[System.Configuration.StringValidator(MinLength=0)]
public string Contract { get; set; }
member this.Contract : string with get, set
Public Property Contract As String

Property Value

The contract this endpoint is exposing.

Remarks

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

Applies to