ServiceEndpointElement.Contract 屬性

定義

取得或設定字串,指定這個端點所公開的合約。

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

屬性值

String

此端點公開的合約。

屬性

備註

組件必須實作合約類型。 如果服務實作實作單一合約類型,便可省略這個屬性。

適用於