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 并将其添加到集合中。

适用于