語言

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

屬性值

某個契約的終點。 預設值是空字串。 服務模式允許使用者為特定合約類型定義多個用戶端。 每個定義都必須以唯一的配置名稱來區分。 若省略此屬性,則對應端點將作為與指定合約類型相關的預設端點。

屬性

備註

服務模式允許使用者為特定合約類型定義多個用戶端。 每個定義都必須以唯一的配置名稱來區分。 若省略此屬性,則對應端點將作為與指定合約類型相關的預設端點。

適用於