Share via


ServiceEndpointElement.Contract Propriété

Définition

Obtient ou définit une chaîne qui spécifie le contrat que 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é

String

Le contrat exposé par ce point de terminaison.

Attributs

Remarques

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

S’applique à