共用方式為


DiscoveryServiceExtension.PublishedEndpoints 屬性

定義

取得已發行端點的唯讀集合。

public:
 property System::Collections::ObjectModel::ReadOnlyCollection<System::ServiceModel::Discovery::EndpointDiscoveryMetadata ^> ^ PublishedEndpoints { System::Collections::ObjectModel::ReadOnlyCollection<System::ServiceModel::Discovery::EndpointDiscoveryMetadata ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<System.ServiceModel.Discovery.EndpointDiscoveryMetadata> PublishedEndpoints { get; }
member this.PublishedEndpoints : System.Collections.ObjectModel.ReadOnlyCollection<System.ServiceModel.Discovery.EndpointDiscoveryMetadata>
Public ReadOnly Property PublishedEndpoints As ReadOnlyCollection(Of EndpointDiscoveryMetadata)

屬性值

ReadOnlyCollection<EndpointDiscoveryMetadata>

已發行端點的唯讀集合。

備註

這個屬性應只能在成功開啟 ServiceHost 之後存取。 當 ServiceHost 處於 Opening 狀態,就會產生 EndpointDiscoveryMetadata,並將它加入至集合。

適用於