ChannelEndpointElement.Name 屬性

定義

取得或設定已指定合約之端點的唯一識別碼。

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

屬性值

指定合約的端點。 預設為空字串。 服務模型允許使用者為指定的合約類型定義多個用戶端。 每個定義必須使用唯一組態名稱來區別。 如果省略這個屬性,就會使用對應端點做為與所指定合約類型有關聯的預設端點。

屬性

備註

服務模型允許使用者為指定的合約類型定義多個用戶端。 每個定義必須使用唯一組態名稱來區別。 如果省略這個屬性,就會使用對應端點做為與所指定合約類型有關聯的預設端點。

適用於