Langue

ServiceEndpointElement.Contract Propriété

Définition

Obtient ou définit une chaîne qui spécifie quel contrat ce point de terminaison expose.

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

Valeur de propriété

Le contrat que ce point de terminaison expose.

Attributs

Remarques

L’assembly doit implémenter le type de contrat. Si une implémentation de service implémente un type de contrat unique, cette propriété peut être omise.

S’applique à